diff --git a/lib/ansible/modules/cloud/azure/azure_rm_gallery.py b/lib/ansible/modules/cloud/azure/azure_rm_gallery.py index 54dd22ef3af..a29ee0d447c 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_gallery.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_gallery.py @@ -261,7 +261,6 @@ class AzureRMGalleries(AzureRMModuleBaseExt): response = json.loads(response.text) except Exception: response = {'text': response.text} - pass return response diff --git a/lib/ansible/modules/cloud/azure/azure_rm_galleryimage.py b/lib/ansible/modules/cloud/azure/azure_rm_galleryimage.py index cb19efd2722..6261268fde2 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_galleryimage.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_galleryimage.py @@ -501,7 +501,6 @@ class AzureRMGalleryImages(AzureRMModuleBaseExt): response = json.loads(response.text) except Exception: response = {'text': response.text} - pass return response diff --git a/lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py b/lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py index 1af6d89b844..b731d46e817 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py @@ -403,7 +403,6 @@ class AzureRMGalleryImageVersions(AzureRMModuleBaseExt): response = json.loads(response.text) except Exception: response = {'text': response.text} - pass while response['properties']['provisioningState'] == 'Creating': time.sleep(60)