mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
VMware: Return facts about rule_affinity vmware_drs_rule_facts (#55813)
Added the rule_affinity while returning about the rule facts
This commit is contained in:
parent
216260cbb4
commit
0e0735f10e
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,7 @@ drs_rule_facts:
|
|||
sample: {
|
||||
"DC0_C0": [
|
||||
{
|
||||
"rule_affinity": false,
|
||||
"rule_enabled": true,
|
||||
"rule_key": 1,
|
||||
"rule_mandatory": true,
|
||||
|
@ -182,6 +183,7 @@ class VmwareDrsFactManager(PyVmomi):
|
|||
rule_uuid=rule_obj.ruleUuid,
|
||||
rule_vms=[vm.name for vm in rule_obj.vm],
|
||||
rule_type="vm_vm_rule",
|
||||
rule_affinity=True if isinstance(rule_obj, vim.cluster.AffinityRuleSpec) else False,
|
||||
)
|
||||
|
||||
def normalize_vm_host_rule_spec(self, rule_obj=None, cluster_obj=None):
|
||||
|
|
Loading…
Reference in a new issue