[node-patches] Change in ovirt-node[master]: [rhn] Don't try to unpersist files unless they're persisted
rbarry at redhat.com
rbarry at redhat.com
Tue Nov 3 20:47:15 UTC 2015
Ryan Barry has uploaded a new change for review.
Change subject: [rhn] Don't try to unpersist files unless they're persisted
......................................................................
[rhn] Don't try to unpersist files unless they're persisted
Use Config().exists(), not os.path.exists(), which provides no
guarantees of whether it's persisted.
Change-Id: I16267d0d5ebd104fc85b174c7b86df3a2d4724d9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1275222
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/setup/rhn/rhn_model.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/35/48035/1
diff --git a/src/ovirt/node/setup/rhn/rhn_model.py b/src/ovirt/node/setup/rhn/rhn_model.py
index 048fe3e..c235cfc 100755
--- a/src/ovirt/node/setup/rhn/rhn_model.py
+++ b/src/ovirt/node/setup/rhn/rhn_model.py
@@ -287,7 +287,7 @@
def commit(self):
def scrub(f):
- if os.path.exists(f):
+ if Config().exists(f):
Config().unpersist(f)
# Unlinking causes problems with satellite5. Why?
# os.unlink(f)
--
To view, visit https://gerrit.ovirt.org/48035
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I16267d0d5ebd104fc85b174c7b86df3a2d4724d9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
More information about the node-patches
mailing list