Fix incorrect error handling
This commit is contained in:
parent
3f0b0b2d7b
commit
286d7aad44
|
@ -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"] ]
|
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)}")
|
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)}")
|
notifications.send_webhook(config, "begin", f"Building TFTP contents via pvc-installer command: {' '.join(build_cmd)}")
|
||||||
retcode = run(build_cmd)
|
ret = run(build_cmd)
|
||||||
return True if retcode == 0 else False
|
return True if ret.returncode == 0 else False
|
||||||
|
|
||||||
|
|
||||||
def init_tftp(config):
|
def init_tftp(config):
|
||||||
|
|
Loading…
Reference in New Issue