Skip to content

Commit

Permalink
Username and keypair file should be valid credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelballantyne committed Jan 29, 2013
1 parent d17741f commit 59302bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions littlechef/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ def _readconfig():
except ConfigParser.NoOptionError:
pass

if user_specified and not env.password and not env.ssh_config:
abort('You need to define a password or a ssh-config file in config.cfg')
if user_specified and not env.password and not env.key_filename and not env.ssh_config:
abort('You need to define a password, keypair file, or ssh-config file in config.cfg')

# Node's Chef Solo working directory for storing cookbooks, roles, etc.
try:
Expand Down

0 comments on commit 59302bd

Please sign in to comment.