mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 09:54:02 -07:00
Fix errors reported by pylint. (#23282)
* Fix pylint misplaced-bare-raise errors. * Fix pylint return-in-init error. * Fix pylint bad-format-character error. * Fix pylint too-many-format-args errors. * Fix pylint too-few-format-args errors. * Fix pylint truncated-format-string error.
This commit is contained in:
parent
9e1bf1c6f2
commit
48eeab8a53
15 changed files with 17 additions and 25 deletions
|
@ -200,8 +200,7 @@ class AzureRMResourceGroup(AzureRMModuleBase):
|
|||
# Create resource group
|
||||
self.log("Creating resource group {0}".format(self.name))
|
||||
if not self.location:
|
||||
self.fail("Parameter error: location is required when creating a resource "
|
||||
"group.".format(self.name))
|
||||
self.fail("Parameter error: location is required when creating a resource group.")
|
||||
if self.name_exists():
|
||||
self.fail("Error: a resource group with the name {0} already exists in your subscription."
|
||||
.format(self.name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue