Add debug logging
infra/host-provisioner/pipeline/head This commit looks good
Details
infra/host-provisioner/pipeline/head This commit looks good
Details
Trying to figure out why it's not cloning the correct branch...master
parent
cefdd39e2d
commit
2500dc511d
|
@ -80,8 +80,9 @@ def clone_configpolicy(branch: str) -> None:
|
||||||
'.',
|
'.',
|
||||||
]
|
]
|
||||||
log.info(
|
log.info(
|
||||||
'Cloning configuration policy from %s into %s',
|
'Cloning configuration policy from %s (branch %s) into %s',
|
||||||
CONFIGPOLICY,
|
CONFIGPOLICY,
|
||||||
|
branch,
|
||||||
os.getcwd(),
|
os.getcwd(),
|
||||||
)
|
)
|
||||||
subprocess.run(cmd, check=True, stdin=subprocess.DEVNULL)
|
subprocess.run(cmd, check=True, stdin=subprocess.DEVNULL)
|
||||||
|
@ -119,6 +120,7 @@ def get_host_info() -> HostInfo | None:
|
||||||
):
|
):
|
||||||
if method is None:
|
if method is None:
|
||||||
break
|
break
|
||||||
|
log.debug('Received: %r', body)
|
||||||
try:
|
try:
|
||||||
data = json.loads(body)
|
data = json.loads(body)
|
||||||
host_info = HostInfo.model_validate(data)
|
host_info = HostInfo.model_validate(data)
|
||||||
|
|
Loading…
Reference in New Issue