Skip to content

Commit

Permalink
Remove hard-coded valid eauth backends
Browse files Browse the repository at this point in the history
We can't easily guess possible valid values here since new backend
modules can be easily added outside from the modules that ship with the
core Salt distribution. That said, if the user doesn't provide a value
here optparse will just grab anything the comes next, even another valid
flag (is that right?) so it would be nice to have some kind of
validation here...
  • Loading branch information
whiteinge committed Apr 2, 2014
1 parent db30839 commit 8116f56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/pepper
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def get_login_details(opts):
'SALTAPI_EAUTH': 'auto',
}

valid_auths = ('pam')
profile = 'main'

config = ConfigParser.RawConfigParser()
Expand All @@ -148,7 +147,7 @@ def get_login_details(opts):
results[key] = os.environ.get(key, results[key])

# get eauth prompt options
if opts.eauth and opts.eauth in valid_auths:
if opts.eauth:
results['SALTAPI_USER'] = raw_input('Username: ')
results['SALTAPI_PASS'] = getpass.getpass(prompt='Password: ')

Expand Down

0 comments on commit 8116f56

Please sign in to comment.