inventory plugins: use f-strings (#9323)

* inventory plugins: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky 2024-12-23 23:02:30 +13:00 committed by GitHub
commit 1d8f0b2942
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 148 additions and 149 deletions

View file

@ -161,7 +161,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
try:
self.instances = self.client.linode.instances()
except LinodeApiError as exception:
raise AnsibleError('Linode client raised: %s' % exception)
raise AnsibleError(f'Linode client raised: {exception}')
def _add_groups(self):
"""Add Linode instance groups to the dynamic inventory."""