mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
minor refactors on plugins/modules/cloud/misc (#2557)
* minor refactors on plugins/modules/cloud/misc * added changelog fragment * removed unreachable statement * Update plugins/modules/cloud/misc/terraform.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/cloud/misc/rhevm.py Co-authored-by: Felix Fontein <felix@fontein.de> * adjusted per PR comment Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
43c12b82fa
commit
3afcf7e75d
7 changed files with 32 additions and 29 deletions
|
@ -95,7 +95,7 @@ class ProxmoxGroup:
|
|||
self.group = dict()
|
||||
# Data representation is not the same depending on API calls
|
||||
for k, v in group.items():
|
||||
if k == 'users' and type(v) == str:
|
||||
if k == 'users' and isinstance(v, str):
|
||||
self.group['users'] = v.split(',')
|
||||
elif k == 'members':
|
||||
self.group['users'] = group['members']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue