Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
collect ssh_port from options passed in after validation. Closes #185.
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Aug 15, 2017
1 parent 950c6ac commit f547425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rho/profileaddcommand.py
Expand Up @@ -110,13 +110,15 @@ def _validate_options(self):
print(str(port_error))
self.parser.print_help()
sys.exit(1)
else:
self.options.sshport = 22

# pylint: disable=too-many-locals
def _do_command(self):
vault = get_vault(self.options.vaultfile)
hosts_list = self.options.hosts
profiles_list = []
ssh_port = 22
ssh_port = self.options.sshport

if os.path.isfile(utilities.PROFILES_PATH):
profiles_list = vault.load_as_json(utilities.PROFILES_PATH)
Expand Down

0 comments on commit f547425

Please sign in to comment.