Fix keyerror in manage.bootstrap

This commit is contained in:
Ch3LL 2018-08-24 10:58:10 -04:00
parent 4c81c2ecf3
commit da71c97073
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

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: