From ede3a8cee1d6b327a495832b00b0c3e98eff3818 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 13 Sep 2018 23:00:21 +0200 Subject: [PATCH] Fix formatting for the error on azure_rm_appserviceplan_facts (#45613) Since there is only 1 argument, {1} can't work since that's the 2nd argument for format. Flagged by lgmt.com --- .../modules/cloud/azure/azure_rm_appserviceplan_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_appserviceplan_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_appserviceplan_facts.py index 17f22b92fef..21e16c1f408 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_appserviceplan_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_appserviceplan_facts.py @@ -203,7 +203,7 @@ class AzureRMAppServicePlanFacts(AzureRMModuleBase): try: response = list(self.web_client.app_service_plans.list()) except CloudError as exc: - self.fail("Error listing app service plans: {1}".format(str(exc))) + self.fail("Error listing app service plans: {0}".format(str(exc))) results = [] for item in response: