Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
1880279b
Commit
1880279b
authored
10 years ago
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaking logical assignment of vm_metadata in abiquo inventory script
parent
eb8de964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
plugins/inventory/abiquo.py
+1
-2
No files found.
plugins/inventory/abiquo.py
View file @
1880279b
...
...
@@ -171,8 +171,7 @@ def generate_inv_from_api(enterprise_entity,config):
vm_metadata
=
metadata
[
'metadata'
]
else
:
vm_metadata
=
metadata
[
'metadata'
][
'metadata'
]
if
not
vm_metadata
is
None
:
inventory
[
'_meta'
][
'hostvars'
][
vm_nic
]
=
vm_metadata
inventory
[
'_meta'
][
'hostvars'
][
vm_nic
]
=
vm_metadata
except
Exception
,
e
:
pass
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment