Remove unnecessary pass statement (#61749)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
a680ff2ade
commit
92099d7f2f
3 changed files with 0 additions and 3 deletions
|
@ -340,7 +340,6 @@ class AzureRMIoTDeviceModule(AzureRMModuleBase):
|
||||||
url = '/devices/{0}/modules/{1}'.format(self.device, self.name)
|
url = '/devices/{0}/modules/{1}'.format(self.device, self.name)
|
||||||
return self._https_get(url, self.query_parameters, self.header_parameters)
|
return self._https_get(url, self.query_parameters, self.header_parameters)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_twin(self):
|
def get_twin(self):
|
||||||
|
|
|
@ -819,7 +819,6 @@ class AzureRMIoTHub(AzureRMModuleBase):
|
||||||
try:
|
try:
|
||||||
return self.IoThub_client.iot_hub_resource.get(self.resource_group, self.name)
|
return self.IoThub_client.iot_hub_resource.get(self.resource_group, self.name)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def create_or_update_hub(self, hub):
|
def create_or_update_hub(self, hub):
|
||||||
|
|
|
@ -328,7 +328,6 @@ class AzureRMSnapshots(AzureRMModuleBaseExt):
|
||||||
response = json.loads(response.text)
|
response = json.loads(response.text)
|
||||||
except Exception:
|
except Exception:
|
||||||
response = {'text': response.text}
|
response = {'text': response.text}
|
||||||
pass
|
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue