From 540ceb8622ec151d319fbcfd326412a531ba180e Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 2 Jul 2019 14:31:34 +0530 Subject: [PATCH] Remove unnecessary pass (#58620) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/azure/azure_rm_gallery.py | 1 - lib/ansible/modules/cloud/azure/azure_rm_galleryimage.py | 1 - lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py | 1 - 3 files changed, 3 deletions(-) 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)