Fix incorrect error handling

This commit is contained in:
Joshua Boniface 2023-08-30 17:24:55 +00:00
parent 3f0b0b2d7b
commit 286d7aad44
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ def build_tftp_repository(config):
build_cmd = [ f"{config['ansible_path']}/pvc-installer/buildpxe.sh", "-o", config['tftp_root_path'], "-u", config['deploy_username'], "-m", config["repo_mirror"] ]
print(f"Building TFTP contents via pvc-installer command: {' '.join(build_cmd)}")
notifications.send_webhook(config, "begin", f"Building TFTP contents via pvc-installer command: {' '.join(build_cmd)}")
retcode = run(build_cmd)
return True if retcode == 0 else False
ret = run(build_cmd)
return True if ret.returncode == 0 else False
def init_tftp(config):