def _init_on_demand(self): if not self.instantiated: try: install_grubby_if_necessary() Grubby.__init__(self, self.path) self.instantiated = True except Exception, e: raise error.JobError("Unable to instantiate boottool: %s" % e)
def __init__(self, path='/sbin/grubby'): install_grubby_if_missing() Grubby.__init__(self, path)