Skip to content

Commit

Permalink
Fix error in command shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
drighetto committed Jul 24, 2016
1 parent 37c2382 commit 2524d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Windows/src/LaZagne/softwares/maven/mavenrepositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class MavenRepositories(ModuleInfo):

def __init__(self):
options = {'command': '-t', 'action': 'store_true', 'dest': 'mavenrepositories', 'help': 'Maven repositories'}
options = {'command': '-mvn', 'action': 'store_true', 'dest': 'mavenrepositories', 'help': 'Maven repositories'}
ModuleInfo.__init__(self, 'mavenrepositories', 'maven', options)
# Interesting XML nodes in Maven repository configuration
self.nodes_to_extract = ["id", "username", "password", "privateKey", "passphrase"]
Expand Down Expand Up @@ -128,7 +128,7 @@ def run(self):
pk_file_location = creds["privateKey"]
pk_file_location = pk_file_location.replace("${user.home}", os.environ.get("USERPROFILE"))
with open(pk_file_location, "r") as pk_file:
values["PrivateKey"] = pk_file.read().replace("\n", "").strip()
values["PrivateKey"] = pk_file.read()
if "passphrase" in creds:
values["Passphrase"] = creds["passphrase"]
pwd_found.append(values)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class ApacheDirectoryStudio(ModuleInfo):

def __init__(self):
options = {'command': '-t', 'action': 'store_true', 'dest': 'apachedirectorystudio', 'help': 'Apache Directory Studio'}
options = {'command': '-ads', 'action': 'store_true', 'dest': 'apachedirectorystudio', 'help': 'Apache Directory Studio'}
ModuleInfo.__init__(self, 'apachedirectorystudio', 'sysadmin', options)
# Interesting XML attributes in ADS connection configuration
self.attr_to_extract = ["host", "port", "bindPrincipal", "bindPassword", "authMethod"]
Expand Down

0 comments on commit 2524d8f

Please sign in to comment.