summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-21 13:38:06 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-21 13:38:06 -0700
commita70db20051d52fd7d56e98e821a9e528c3175ab0 (patch)
treeb3ac65dcd7af18fec1f93623b715b501946ba6d0 /cloudinit
parent7bec03bca0e02230572917372a8bb7f73d389c7d (diff)
downloadvyos-cloud-init-a70db20051d52fd7d56e98e821a9e528c3175ab0.tar.gz
vyos-cloud-init-a70db20051d52fd7d56e98e821a9e528c3175ab0.zip
Returning whether it was enabled, useful for unit testing
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 9c3d7fc7..f0a65fa3 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -133,7 +133,7 @@ class SeLinuxGuard(object):
def __enter__(self):
# TODO: Should we try to engage selinux here??
- return None
+ return self.enabled
def __exit__(self, excp_type, excp_value, excp_traceback):
if self.enabled: