|
|
|
@ -1025,7 +1025,6 @@ class Ec2Inventory(object):
|
|
|
|
|
|
|
|
|
|
|
|
return list(name_list)
|
|
|
|
return list(name_list)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_host_info_dict_from_instance(self, instance):
|
|
|
|
def get_host_info_dict_from_instance(self, instance):
|
|
|
|
instance_vars = {}
|
|
|
|
instance_vars = {}
|
|
|
|
for key in vars(instance):
|
|
|
|
for key in vars(instance):
|
|
|
|
@ -1225,7 +1224,6 @@ class Ec2Inventory(object):
|
|
|
|
|
|
|
|
|
|
|
|
return re.sub("[^A-Za-z0-9\_]", "_", word)
|
|
|
|
return re.sub("[^A-Za-z0-9\_]", "_", word)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def json_format_dict(self, data, pretty=False):
|
|
|
|
def json_format_dict(self, data, pretty=False):
|
|
|
|
''' Converts a dict to a JSON object and dumps it as a formatted
|
|
|
|
''' Converts a dict to a JSON object and dumps it as a formatted
|
|
|
|
string '''
|
|
|
|
string '''
|
|
|
|
|