mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-20 02:39:02 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
parent
50846b7560
commit
749c06cd01
44 changed files with 399 additions and 412 deletions
|
|
@ -205,9 +205,9 @@ class EthernetNetworkModule(OneViewModuleBase):
|
|||
result['changed'] = False
|
||||
else:
|
||||
if len(vlan_ids) == 1:
|
||||
self.data['vlanIdRange'] = '{0}-{1}'.format(vlan_ids[0], vlan_ids[0])
|
||||
self.data['vlanIdRange'] = f'{vlan_ids[0]}-{vlan_ids[0]}'
|
||||
else:
|
||||
self.data['vlanIdRange'] = ','.join(map(str, vlan_ids))
|
||||
self.data['vlanIdRange'] = ','.join(str(s) for s in vlan_ids)
|
||||
|
||||
self.resource_client.create_bulk(self.data)
|
||||
result['changed'] = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue