@@ -43,7 +43,7 @@ class AnsibleCloudStackAPI(AnsibleModule):
4343 )
4444
4545 def __init__ (self , argument_spec = None , direct_params = None , error_callback = None , warn_callback = None , ** kwargs ):
46-
46+
4747 if not HAS_LIB_CS :
4848 self .fail_json (msg = missing_required_lib ('cs' ), exception = CS_IMP_ERR )
4949
@@ -54,7 +54,7 @@ def __init__(self, argument_spec=None, direct_params=None, error_callback=None,
5454
5555 self .error_callback = error_callback
5656 self .warn_callback = warn_callback
57-
57+
5858 self ._cs = None
5959 self .result = {}
6060
@@ -63,15 +63,14 @@ def __init__(self, argument_spec=None, direct_params=None, error_callback=None,
6363 if param in direct_params :
6464 setattr (self , param , direct_params [param ])
6565 else :
66- setattr (self , param , value )
66+ setattr (self , param , value )
6767 else :
6868 super (AnsibleCloudStackAPI , self ).__init__ (argument_spec = full_argspec , ** kwargs )
6969
7070 # Perform some basic validation
7171 if not re .match ('^https{0,1}://' , self .api_url ):
7272 self .api_url = "https://{0}" .format (self .api_url )
7373
74-
7574 def fail_json (self , ** kwargs ):
7675 if self .error_callback :
7776 self .error_callback (** kwargs )
@@ -110,7 +109,7 @@ def get_api_config(self):
110109 return api_config
111110
112111 def query_api (self , command , ** args ):
113-
112+
114113 try :
115114 res = getattr (self .cs , command )(** args )
116115
0 commit comments