Fix incorrect error handling
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user