We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25ebd2f commit 8ef69f3Copy full SHA for 8ef69f3
src/magentoimagecleanup.py
@@ -57,11 +57,11 @@ def sizeof_fmt(num):
57
58
def getAllImagePath(self):
59
tree = ElementTree.parse(os.path.join(self.magentoPath, self.LOCAL_XML))
60
- username = tree.find(".//username").text
61
- password = tree.find(".//password").text
62
- database = tree.find(".//dbname").text
63
- prefix = tree.find(".//table_prefix").text
64
- hostname = tree.find(".//host").text
+ username = tree.find(".//connection/username").text
+ password = tree.find(".//connection/password").text
+ database = tree.find(".//connection/dbname").text
+ hostname = tree.find(".//connection/host").text
+ prefix = tree.find(".//db/table_prefix").text
65
66
# fixes
67
prefix = prefix if prefix else ''
0 commit comments