From a70db20051d52fd7d56e98e821a9e528c3175ab0 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 21 Jun 2012 13:38:06 -0700 Subject: Returning whether it was enabled, useful for unit testing --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/util.py') 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: -- cgit v1.2.3