Merge pull request #1255 from dagwieers/module-namespace
Add this module's namespace to the 'module_' namespace.
This commit is contained in:
commit
a0e9412180
2 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,9 @@ def main():
|
||||||
|
|
||||||
# TODO: Count number of CPUs, DIMMs and total memory
|
# TODO: Count number of CPUs, DIMMs and total memory
|
||||||
data = ilo.get_host_data()
|
data = ilo.get_host_data()
|
||||||
facts = {}
|
facts = {
|
||||||
|
'module_hw': True,
|
||||||
|
}
|
||||||
for entry in data:
|
for entry in data:
|
||||||
if not entry.has_key('type'): continue
|
if not entry.has_key('type'): continue
|
||||||
if entry['type'] == 0: # BIOS Information
|
if entry['type'] == 0: # BIOS Information
|
||||||
|
|
|
@ -107,6 +107,7 @@ def main():
|
||||||
|
|
||||||
data = vm.get_properties()
|
data = vm.get_properties()
|
||||||
facts = {
|
facts = {
|
||||||
|
'module_hw': True,
|
||||||
'hw_name': vm.properties.name,
|
'hw_name': vm.properties.name,
|
||||||
'hw_guest_full_name': vm.properties.config.guestFullName,
|
'hw_guest_full_name': vm.properties.config.guestFullName,
|
||||||
'hw_guest_id': vm.properties.config.guestId,
|
'hw_guest_id': vm.properties.config.guestId,
|
||||||
|
|
Loading…
Reference in a new issue