--- flags.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/flags.py b/flags.py index 2d77bd7..8dbcc9f 100644 --- a/flags.py +++ b/flags.py @@ -36,6 +36,12 @@ class Flags: else: raise AttributeError, attr + def get(self, attr, val=None): + if self.__dict__['flags'].has_key(attr): + return self.__dict__['flags'][attr] + else: + return val + def createCmdlineDict(self): cmdlineDict = {} cmdline = open("/proc/cmdline", "r").read().strip() -- 1.6.1.3 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list