def install(cls, db, logger=None): if logger is None: logger = log.getChildLogger(cls.__name__) logger.info("Adding CentOS") new = OpSys() new.name = cls.nice_name db.session.add(new) db.session.flush()
def install(cls, db, logger=None) -> None: if logger is None: logger = log.getChild(cls.__name__) logger.info("Adding CentOS") new = OpSys() new.name = cls.nice_name db.session.add(new) db.session.flush()
def install(cls, db, logger=None): if logger is None: logger = log.getChildLogger(cls.__name__) logger.info("Adding Fedora operating system") new = OpSys() new.name = cls.nice_name db.session.add(new) db.session.flush()
def install(cls, db, logger=None): if logger is None: logger = log.getChildLogger(cls.__name__) logger.info("Adding Red Hat Enterprise Linux operating system") new = OpSys() new.name = cls.nice_name db.session.add(new) db.session.flush()