hypervisor annotation show if base domain is initialized or not

This commit is contained in:
Josh Patterson
2025-03-06 15:26:08 -05:00
parent 6c472dd383
commit f30938ed59
7 changed files with 53 additions and 65 deletions

View File

@@ -430,9 +430,9 @@ def _apply_dyanno_hypervisor_state():
# Initialize the LocalClient
local = salt.client.LocalClient()
# Target the salt master (localhost) to apply the soc.dyanno.hypervisor state
# Target the salt master to apply the soc.dyanno.hypervisor state
target = MANAGER_HOSTNAME + '_*'
state_result = local.cmd(target, 'state.apply', ['soc.dyanno.hypervisor'], tgt_type='glob', concurrent=True)
state_result = local.cmd(target, 'state.apply', ['soc.dyanno.hypervisor', "pillar={'baseDomain': {'status': 'PreInit'}}", 'concurrent=True'], tgt_type='glob')
log.debug(f"DYANNO: state_result: {state_result}")
# Check if state was applied successfully
if state_result: