def main(): compile_config() set_up_logging() v = handle_startup() if v is not None: if type(v) != bool: print(v) return else: client = InsightsClient() client.update_rules() tar = client.collect(check_timestamp=False, image_id=(config["image_id"] or config["only"]), tar_file=config["tar_file"], mountpoint=config["mountpoint"]) if not config['no_upload']: client.upload(tar) else: print('Archive saved to ' + tar)
def update(): c = InsightsClient() c.update() c.update_rules()