Skip to content

Commit

Permalink
Revert "add user"
Browse files Browse the repository at this point in the history
This reverts commit e61fa19.
  • Loading branch information
cocoy authored and cocoy committed May 19, 2010
1 parent e61fa19 commit a93a9d6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mr/awsome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,8 @@ def init_ssh_key(self, user=None):
if instance is None:
log.error("Can't establish ssh connection.")
return

if user is None:
# check user at config file
user = self.config['user']
if user is None:
user = 'root'

user = 'root'
host = str(instance.public_dns_name)
port = 22
client = paramiko.SSHClient()
Expand Down Expand Up @@ -695,4 +690,4 @@ def aws_ssh(configpath=None):
argv = sys.argv[:]
argv.insert(1, "ssh")
aws = AWS(configfile=configpath)
return aws(argv)
return aws(argv)

0 comments on commit a93a9d6

Please sign in to comment.