mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix name api_key to api_kg
fix name api_key to api_kg.
This commit is contained in:
parent
165a387681
commit
08872f2da3
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ def _get_config(**kwargs):
|
|||
'api_port': 623,
|
||||
'api_user': 'admin',
|
||||
'api_pass': '',
|
||||
'api_key': None,
|
||||
'api_kg': None,
|
||||
'api_login_timeout': 2,
|
||||
}
|
||||
if '__salt__' in globals():
|
||||
|
@ -79,7 +79,7 @@ class _IpmiCommand(object):
|
|||
config = _get_config(**kwargs)
|
||||
self.o = command.Command(bmc=config['api_host'], userid=config['api_user'],
|
||||
password=config['api_pass'], port=config['api_port'],
|
||||
kg=config['api_key'])
|
||||
kg=config['api_kg'])
|
||||
|
||||
def __enter__(self):
|
||||
return self.o
|
||||
|
@ -103,7 +103,7 @@ class _IpmiSession(object):
|
|||
userid=config['api_user'],
|
||||
password=config['api_pass'],
|
||||
port=config['api_port'],
|
||||
kg=config['api_key'],
|
||||
kg=config['api_kg'],
|
||||
onlogon=self._onlogon)
|
||||
while not self.o.logged:
|
||||
# override timeout
|
||||
|
|
Loading…
Add table
Reference in a new issue