mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-26 21:59:38 -07:00
* 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>
(cherry picked from commit 3afcf7e75d)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5a7d234d80
commit
0a676406b3
7 changed files with 32 additions and 29 deletions
|
|
@ -88,7 +88,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
from ansible.module_utils._text import to_text
|
||||
|
||||
|
||||
CLOUD_INIT_PATH = "/var/lib/cloud/data/"
|
||||
CLOUD_INIT_PATH = "/var/lib/cloud/data"
|
||||
|
||||
|
||||
def gather_cloud_init_data_facts(module):
|
||||
|
|
@ -100,7 +100,7 @@ def gather_cloud_init_data_facts(module):
|
|||
filter = module.params.get('filter')
|
||||
if filter is None or filter == i:
|
||||
res['cloud_init_data_facts'][i] = dict()
|
||||
json_file = CLOUD_INIT_PATH + i + '.json'
|
||||
json_file = os.path.join(CLOUD_INIT_PATH, i + '.json')
|
||||
|
||||
if os.path.exists(json_file):
|
||||
f = open(json_file, 'rb')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue