some cleaning up of code in utils

This commit is contained in:
ronnyabraham 2022-05-09 14:32:42 +03:00
parent a58e04db5f
commit d4b8859d91

View file

@ -367,9 +367,9 @@ def link_create(path_src, path_dst, debug=False):
run(cmd_rm)
else:
msg_error = "something exists at dst - '%s' " \
"- and it's not a link\n kicking out".format(path_dst)
"- and it's not a link\n kicking out"
sys.exit(msg_error)
sys.exit(msg_error.format(path_dst))
if debug:
msg_debug += "link_create:cmd_link : %s" % cmd_link