Merge pull request #49312 from Ch3LL/ssh_list_hosts

Fix keyerror in manage.bootstrap
This commit is contained in:
Daniel Wallace 2018-08-25 14:55:43 -05:00 committed by GitHub
commit d70eda8954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -702,7 +702,7 @@ class SSH(object):
'''
Execute the overall routine, print results via outputters
'''
if self.opts['list_hosts']:
if self.opts.get('list_hosts'):
self._get_roster()
ret = {}
for roster_file in self.__parsed_rosters: