|
|
@ -203,7 +203,7 @@ def delete_meter(module, name, apiid, apikey):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
cert_file = '%s/%s.pem' % (config_directory,cert_type)
|
|
|
|
cert_file = '%s/%s.pem' % (config_directory,cert_type)
|
|
|
|
os.remove(cert_file)
|
|
|
|
os.remove(cert_file)
|
|
|
|
except OSError, e: ## if failed, report it back to the user ##
|
|
|
|
except OSError, e:
|
|
|
|
module.fail_json("Failed to remove " + cert_type + ".pem file")
|
|
|
|
module.fail_json("Failed to remove " + cert_type + ".pem file")
|
|
|
|
|
|
|
|
|
|
|
|
return 0, "Meter " + name + " deleted"
|
|
|
|
return 0, "Meter " + name + " deleted"
|
|
|
@ -268,4 +268,4 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
# include magic from lib/ansible/module_common.py
|
|
|
|
# include magic from lib/ansible/module_common.py
|
|
|
|
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
|
|
|
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|