diff options
Diffstat (limited to 'ipapython/sysrestore.py')
-rw-r--r-- | ipapython/sysrestore.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py index ddc3ee051..d3c7a5017 100644 --- a/ipapython/sysrestore.py +++ b/ipapython/sysrestore.py @@ -314,3 +314,14 @@ class StateFile: self.save() return value + + def has_state(self, module): + """Return True or False if there is any state stored for @module. + + Can be used to determine if a service is configured. + """ + + if self.modules.has_key(module): + return True + else: + return False |