hadong has uploaded a new change for review. Change subject: tools: using "os.path.isabs" instead of "os.path.abspath" ......................................................................
tools: using "os.path.isabs" instead of "os.path.abspath" Change-Id: Id8c330c3b77df7b48b45973e0ff9e5c809ac7f9a Signed-off-by: hadong <[email protected]> --- M scripts/ovirt-node-upgrade.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/63/19663/1 diff --git a/scripts/ovirt-node-upgrade.py b/scripts/ovirt-node-upgrade.py index dfde8fe..2712c79 100755 --- a/scripts/ovirt-node-upgrade.py +++ b/scripts/ovirt-node-upgrade.py @@ -36,7 +36,7 @@ def which(file): ret = None - if os.path.abspath(file) and os.path.exists(file): + if os.path.isabs(file) and os.path.exists(file): ret = file else: for dir in os.environ["PATH"].split(":"): -- To view, visit http://gerrit.ovirt.org/19663 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id8c330c3b77df7b48b45973e0ff9e5c809ac7f9a Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: hadong <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
