Description of problem:
get_inventory.ps is checking HyperVStateString instead of OverallState
Name OverallState HyperVStateString
---- ------------ -----------------
hyperv16d.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com NeedsAttention Unknown
hyperv16a.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com OK Running
hyperv16c.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com OK Running
Need to set mainenance flag to true if OK else false.
Version-Release number of selected component (if applicable):
5.8.0
How reproducible:
All versions, all the time.
Steps to Reproduce:
1. Attempt to provision onto a host in maintenance mode.
2. https://bugzilla.redhat.com/show_bug.cgi?id=1452823
3.
Actual results:
Fails with error
Expected results:
Code implemented below should check that.
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1452823