Surround top-level function and class definitions with two blank lines.

This commit is contained in:
Joren Vrancken 2018-07-29 13:46:06 +02:00 committed by Toshio Kuratomi
parent 9e310558ee
commit b954917761
373 changed files with 408 additions and 28 deletions

View file

@ -344,5 +344,6 @@ class LibcloudInventory(object):
def main(): def main():
LibcloudInventory() LibcloudInventory()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -583,6 +583,7 @@ class AosInventory(object):
for key, value in device.value['status'].items(): for key, value in device.value['status'].items():
self.add_var_to_host(device.name, key, value) self.add_var_to_host(device.name, key, value)
# Run the script # Run the script
if __name__ == '__main__': if __name__ == '__main__':
AosInventory() AosInventory()

View file

@ -482,4 +482,5 @@ class CloudFormsInventory(object):
else: else:
return json.dumps(data) return json.dumps(data)
CloudFormsInventory() CloudFormsInventory()

View file

@ -312,4 +312,5 @@ class CobblerInventory(object):
else: else:
return json.dumps(data) return json.dumps(data)
CobblerInventory() CobblerInventory()

View file

@ -528,4 +528,5 @@ class ConsulConfig(dict):
token = 'anonymous' token = 'anonymous'
return consul.Consul(host=host, port=port, token=token, scheme=scheme) return consul.Consul(host=host, port=port, token=token, scheme=scheme)
ConsulInventory() ConsulInventory()

View file

@ -889,4 +889,5 @@ def main():
DockerInventory().run() DockerInventory().run()
main() main()

View file

@ -436,5 +436,6 @@ class ForemanInventory(object):
self._print_data() self._print_data()
return True return True
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(not ForemanInventory().run()) sys.exit(not ForemanInventory().run())

View file

@ -534,6 +534,7 @@ class GceInventory(object):
else: else:
return json.dumps(data) return json.dumps(data)
# Run the script # Run the script
if __name__ == '__main__': if __name__ == '__main__':
GceInventory() GceInventory()

View file

@ -65,5 +65,6 @@ def main(argv):
else: else:
print("Need an argument, either --list or --host <host>", file=sys.stderr) print("Need an argument, either --list or --host <host>", file=sys.stderr)
if __name__ == '__main__': if __name__ == '__main__':
main(sys.argv) main(sys.argv)

View file

@ -129,6 +129,7 @@ class MDTInventory(object):
parser.add_argument('--host', action='store', help='Get all the variables about a specific instance') parser.add_argument('--host', action='store', help='Get all the variables about a specific instance')
self.args = parser.parse_args() self.args = parser.parse_args()
if __name__ == "__main__": if __name__ == "__main__":
# Run the script # Run the script
MDTInventory() MDTInventory()

View file

@ -173,4 +173,5 @@ class NagiosLivestatusInventory(object):
else: else:
sys.exit("usage: --list or --host HOSTNAME [--pretty]") sys.exit("usage: --list or --host HOSTNAME [--pretty]")
NagiosLivestatusInventory() NagiosLivestatusInventory()

View file

@ -105,4 +105,5 @@ class NagiosNDOInventory(object):
else: else:
sys.exit("Error: Database configuration is missing. See nagios_ndo.ini.") sys.exit("Error: Database configuration is missing. See nagios_ndo.ini.")
NagiosNDOInventory() NagiosNDOInventory()

View file

@ -339,5 +339,6 @@ def main():
elif args.host: elif args.host:
print(client.do_host(args.host)) print(client.do_host(args.host))
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -288,5 +288,6 @@ class OVirtInventory(object):
else: else:
return json.dumps(data) return json.dumps(data)
# Run the script # Run the script
OVirtInventory() OVirtInventory()

View file

@ -258,5 +258,6 @@ def main():
) )
) )
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -185,7 +185,6 @@ def load_config_file():
return None return None
else: else:
return p return p
p = load_config_file()
def rax_slugify(value): def rax_slugify(value):
@ -469,5 +468,6 @@ def main():
sys.exit(0) sys.exit(0)
p = load_config_file()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -294,5 +294,6 @@ class RudderInventory(object):
return re.sub(r'[^A-Za-z0-9\_]', '_', word) return re.sub(r'[^A-Za-z0-9\_]', '_', word)
# Run the script # Run the script
RudderInventory() RudderInventory()

View file

@ -198,4 +198,5 @@ class SoftLayerInventory(object):
self.get_virtual_servers() self.get_virtual_servers()
self.get_physical_servers() self.get_physical_servers()
SoftLayerInventory() SoftLayerInventory()

View file

@ -30,6 +30,7 @@ class SetEncoder(json.JSONEncoder):
return list(obj) return list(obj)
return json.JSONEncoder.default(self, obj) return json.JSONEncoder.default(self, obj)
VBOX = "VBoxManage" VBOX = "VBoxManage"

View file

@ -152,4 +152,5 @@ class ZabbixInventory(object):
print("Error: Configuration of server and credentials are required. See zabbix.ini.", file=sys.stderr) print("Error: Configuration of server and credentials are required. See zabbix.ini.", file=sys.stderr)
sys.exit(1) sys.exit(1)
ZabbixInventory() ZabbixInventory()

View file

@ -92,5 +92,6 @@ def main():
for host, result in callback.host_unreachable.items(): for host, result in callback.host_unreachable.items():
print('{0} >>> {1}'.format(host, result._result['msg'])) print('{0} >>> {1}'.format(host, result._result['msg']))
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -26,5 +26,6 @@ def main():
print(C.DEFAULT_MODULE_PATH) print(C.DEFAULT_MODULE_PATH)
return 0 return 0
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())

View file

@ -77,6 +77,7 @@ def _fileobj_to_fd(fileobj):
raise ValueError("Invalid file descriptor: {0}".format(fd)) raise ValueError("Invalid file descriptor: {0}".format(fd))
return fd return fd
# Python 3.5 uses a more direct route to wrap system calls to increase speed. # Python 3.5 uses a more direct route to wrap system calls to increase speed.
if sys.version_info >= (3, 5): if sys.version_info >= (3, 5):
def _syscall_wrapper(func, _, *args, **kwargs): def _syscall_wrapper(func, _, *args, **kwargs):
@ -305,6 +306,7 @@ class BaseSelector(object):
def __exit__(self, *args): def __exit__(self, *args):
self.close() self.close()
# Almost all platforms have select.select() # Almost all platforms have select.select()
if hasattr(select, "select"): if hasattr(select, "select"):
class SelectSelector(BaseSelector): class SelectSelector(BaseSelector):

View file

@ -34,6 +34,7 @@ class SQLParseError(Exception):
class UnclosedQuoteError(SQLParseError): class UnclosedQuoteError(SQLParseError):
pass pass
# maps a type of identifier to the maximum number of dot levels that are # maps a type of identifier to the maximum number of dot levels that are
# allowed to specify that identifier. For example, a database column can be # allowed to specify that identifier. For example, a database column can be
# specified by up to 4 levels: database.schema.table.column # specified by up to 4 levels: database.schema.table.column

View file

@ -61,6 +61,7 @@ def list_dict_str(value):
return value return value
raise TypeError raise TypeError
ARG_ATTRIBUTES_BLACKLIST = ('property_path',) ARG_ATTRIBUTES_BLACKLIST = ('property_path',)
COMMON_ARG_SPEC = { COMMON_ARG_SPEC = {

View file

@ -77,6 +77,7 @@ def aci_argument_spec():
validate_certs=dict(type='bool', default=True), validate_certs=dict(type='bool', default=True),
) )
''' '''
URL_MAPPING = dict( URL_MAPPING = dict(
action_rule=dict(aci_class='rtctrlAttrP', mo='attr-', key='name'), action_rule=dict(aci_class='rtctrlAttrP', mo='attr-', key='name'),

View file

@ -81,6 +81,7 @@ def getRuleString(deviceType, variableId):
return retVal return retVal
# EOM # EOM
default_cnos = { default_cnos = {
'vlan_id': 'INTEGER_VALUE:1-3999', 'vlan_id': 'INTEGER_VALUE:1-3999',
'vlan_id_range': 'INTEGER_VALUE_RANGE:1-3999', 'vlan_id_range': 'INTEGER_VALUE_RANGE:1-3999',

View file

@ -43,6 +43,7 @@ def get_exception():
""" """
return sys.exc_info()[1] return sys.exc_info()[1]
try: try:
# Python 2.6+ # Python 2.6+
from ast import literal_eval from ast import literal_eval

View file

@ -228,6 +228,7 @@ class _SixMetaPathImporter(object):
return None return None
get_source = get_code # same as get_code get_source = get_code # same as get_code
_importer = _SixMetaPathImporter(__name__) _importer = _SixMetaPathImporter(__name__)
@ -490,6 +491,7 @@ class Module_six_moves_urllib(types.ModuleType):
def __dir__(self): def __dir__(self):
return ['parse', 'error', 'request', 'response', 'robotparser'] return ['parse', 'error', 'request', 'response', 'robotparser']
_importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"), _importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"),
"moves.urllib") "moves.urllib")

View file

@ -295,6 +295,7 @@ class NoSSLError(SSLValidationError):
"""Needed to connect to an HTTPS url but no ssl library available to verify the certificate""" """Needed to connect to an HTTPS url but no ssl library available to verify the certificate"""
pass pass
# Some environments (Google Compute Engine's CoreOS deploys) do not compile # Some environments (Google Compute Engine's CoreOS deploys) do not compile
# against openssl and thus do not have any HTTPS support. # against openssl and thus do not have any HTTPS support.
CustomHTTPSConnection = CustomHTTPSHandler = None CustomHTTPSConnection = CustomHTTPSHandler = None

View file

@ -222,5 +222,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -325,5 +325,6 @@ def main():
else: else:
delete_glue_connection(connection_glue, module, glue_connection) delete_glue_connection(connection_glue, module, glue_connection)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -361,5 +361,6 @@ def main():
else: else:
delete_glue_job(connection, module, glue_job) delete_glue_job(connection, module, glue_job)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -187,5 +187,6 @@ def main():
elif state == 'absent': elif state == 'absent':
destroy_bucket_cors(client, module) destroy_bucket_cors(client, module)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -727,5 +727,6 @@ def main():
module.exit_json(changed=changed, **camel_dict_to_snake_dict(response)) module.exit_json(changed=changed, **camel_dict_to_snake_dict(response))
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -535,5 +535,6 @@ def main():
module.exit_json(**facts_result) module.exit_json(**facts_result)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -354,5 +354,6 @@ def main():
module.exit_json(**facts_result) module.exit_json(**facts_result)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -569,5 +569,6 @@ def main():
else: else:
delete_elb(elb) delete_elb(elb)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -415,5 +415,6 @@ def main():
else: else:
delete_elb(elb) delete_elb(elb)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -312,5 +312,6 @@ def main():
else: else:
deregister_target(connection, module) deregister_target(connection, module)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -204,6 +204,7 @@ def to_template_params(health_check):
params['string_match_part'] = HealthCheck.XMLStringMatchPart % {'string_match': health_check.string_match} params['string_match_part'] = HealthCheck.XMLStringMatchPart % {'string_match': health_check.string_match}
return params return params
XMLResourcePathPart = """<ResourcePath>%(resource_path)s</ResourcePath>""" XMLResourcePathPart = """<ResourcePath>%(resource_path)s</ResourcePath>"""
POSTXMLBody = """ POSTXMLBody = """

View file

@ -309,5 +309,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMAvailabilitySet() AzureRMAvailabilitySet()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -172,5 +172,6 @@ def main():
AzureRMAvailabilitySetFacts() AzureRMAvailabilitySetFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -424,5 +424,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMContainerInstance() AzureRMContainerInstance()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -424,5 +424,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMContainerRegistry() AzureRMContainerRegistry()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -388,5 +388,6 @@ def gethash(self):
def main(): def main():
AzureRMRecordSet() AzureRMRecordSet()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -197,5 +197,6 @@ class AzureRMRecordSetFacts(AzureRMModuleBase):
def main(): def main():
AzureRMRecordSetFacts() AzureRMRecordSetFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -236,5 +236,6 @@ def zone_to_dict(zone):
def main(): def main():
AzureRMDNSZone() AzureRMDNSZone()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -177,5 +177,6 @@ class AzureRMDNSZoneFacts(AzureRMModuleBase):
def main(): def main():
AzureRMDNSZoneFacts() AzureRMDNSZoneFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -309,5 +309,6 @@ def main():
AzureRMFunctionApp() AzureRMFunctionApp()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -316,5 +316,6 @@ class AzureRMImage(AzureRMModuleBase):
def main(): def main():
AzureRMImage() AzureRMImage()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -489,5 +489,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMVaults() AzureRMVaults()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -291,5 +291,6 @@ class AzureRMKeyVaultKey(AzureRMModuleBase):
def main(): def main():
AzureRMKeyVaultKey() AzureRMKeyVaultKey()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -212,5 +212,6 @@ class AzureRMKeyVaultSecret(AzureRMModuleBase):
def main(): def main():
AzureRMKeyVaultSecret() AzureRMKeyVaultSecret()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -970,5 +970,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMLoadBalancer() AzureRMLoadBalancer()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -170,5 +170,6 @@ def main():
AzureRMLoadBalancerFacts() AzureRMLoadBalancerFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -384,5 +384,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMManagedDisk() AzureRMManagedDisk()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -166,5 +166,6 @@ def main():
AzureRMManagedDiskFacts() AzureRMManagedDiskFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -299,5 +299,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMDatabases() AzureRMDatabases()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -373,5 +373,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMServers() AzureRMServers()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -206,5 +206,6 @@ class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
def main(): def main():
AzureRMNetworkInterfaceFacts() AzureRMNetworkInterfaceFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -299,5 +299,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMDatabases() AzureRMDatabases()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -372,5 +372,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMServers() AzureRMServers()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -282,5 +282,6 @@ class AzureRMPublicIPAddress(AzureRMModuleBase):
def main(): def main():
AzureRMPublicIPAddress() AzureRMPublicIPAddress()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -251,5 +251,6 @@ class AzureRMResourceGroup(AzureRMModuleBase):
def main(): def main():
AzureRMResourceGroup() AzureRMResourceGroup()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -152,5 +152,6 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase):
def main(): def main():
AzureRMResourceGroupFacts() AzureRMResourceGroupFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -270,5 +270,6 @@ class AzureRMSecurityGroupFacts(AzureRMModuleBase):
def main(): def main():
AzureRMSecurityGroupFacts() AzureRMSecurityGroupFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -495,5 +495,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMDatabases() AzureRMDatabases()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -321,5 +321,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMServers() AzureRMServers()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -200,5 +200,7 @@ class AzureRMServersFacts(AzureRMModuleBase):
def main(): def main():
AzureRMServersFacts() AzureRMServersFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -451,5 +451,6 @@ class AzureRMStorageAccount(AzureRMModuleBase):
def main(): def main():
AzureRMStorageAccount() AzureRMStorageAccount()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -545,5 +545,6 @@ class AzureRMStorageBlob(AzureRMModuleBase):
def main(): def main():
AzureRMStorageBlob() AzureRMStorageBlob()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -311,5 +311,6 @@ class AzureRMSubnet(AzureRMModuleBase):
def main(): def main():
AzureRMSubnet() AzureRMSubnet()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -309,5 +309,6 @@ def main():
"""Main execution""" """Main execution"""
AzureRMVMExtension() AzureRMVMExtension()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -851,5 +851,6 @@ class AzureRMVirtualMachineScaleSet(AzureRMModuleBase):
def main(): def main():
AzureRMVirtualMachineScaleSet() AzureRMVirtualMachineScaleSet()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -277,5 +277,6 @@ def main():
AzureRMVirtualMachineScaleSetFacts() AzureRMVirtualMachineScaleSetFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -215,5 +215,6 @@ class AzureRMVirtualMachineImageFacts(AzureRMModuleBase):
def main(): def main():
AzureRMVirtualMachineImageFacts() AzureRMVirtualMachineImageFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -344,5 +344,6 @@ class AzureRMVirtualNetwork(AzureRMModuleBase):
def main(): def main():
AzureRMVirtualNetwork() AzureRMVirtualNetwork()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -176,5 +176,6 @@ class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
def main(): def main():
AzureRMNetworkInterfaceFacts() AzureRMNetworkInterfaceFacts()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -290,5 +290,6 @@ def main():
elif module.state == 'absent': elif module.state == 'absent':
module.state_absent() module.state_absent()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -327,5 +327,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -327,5 +327,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -852,5 +852,6 @@ class BackeServiConneDrain(object):
u'drainingTimeoutSec': self.request.get(u'drainingTimeoutSec') u'drainingTimeoutSec': self.request.get(u'drainingTimeoutSec')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -631,5 +631,6 @@ class DiskSourSnapEncrKey(object):
u'sha256': self.request.get(u'sha256') u'sha256': self.request.get(u'sha256')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -473,5 +473,6 @@ class FirewallAllowedArray(object):
u'ports': item.get(u'ports') u'ports': item.get(u'ports')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -521,5 +521,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -323,5 +323,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -572,5 +572,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -795,5 +795,6 @@ class HealChecSslHealChec(object):
u'proxyHeader': self.request.get(u'proxyHeader') u'proxyHeader': self.request.get(u'proxyHeader')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -398,5 +398,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -397,5 +397,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -749,5 +749,6 @@ class ImagSourDiskEncrKey(object):
u'sha256': self.request.get(u'sha256') u'sha256': self.request.get(u'sha256')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -1464,5 +1464,6 @@ class InstanceTags(object):
u'items': self.request.get(u'items') u'items': self.request.get(u'items')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -430,5 +430,6 @@ class InstaGroupNamedPortsArray(object):
u'port': item.get(u'port') u'port': item.get(u'port')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -591,5 +591,6 @@ class InstGrouManaNamePortArray(object):
u'port': item.get(u'port') u'port': item.get(u'port')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -1439,5 +1439,6 @@ class InstancTemplatTags(object):
u'items': self.request.get(u'items') u'items': self.request.get(u'items')
}) })
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -354,5 +354,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -414,5 +414,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -338,5 +338,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -386,5 +386,6 @@ def raise_if_errors(response, err_path, module):
if errors is not None: if errors is not None:
module.fail_json(msg=errors) module.fail_json(msg=errors)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

Some files were not shown because too many files have changed in this diff Show more