def close_hook(conduit):
    if not conduit.confBool("main", "supress_debug"):
        conduit.info(2, "Uploading Enabled Repositories Report")
    try:
        report = EnabledReport(REPOSITORY_PATH)
        upload_enabled_repos_report(report)
    except:
        if not conduit.confBool("main", "supress_errors"):
            conduit.error(2, "Unable to upload Enabled Repositories Report")
Beispiel #2
0
def close_hook(conduit):
    if not conduit.confBool("main", "supress_debug"):
        conduit.info(2, "Uploading Enabled Repositories Report")
    try:
        report = EnabledReport(REPOSITORY_PATH)
        upload_enabled_repos_report(report)
    except:
        if not conduit.confBool("main", "supress_errors"):
            conduit.error(2, "Unable to upload Enabled Repositories Report")
 def PLUGINEND(self, headers, body):
     logging.info("Uploading Enabled Repositories Report")
     try:
         report = EnabledReport(ZYPPER_REPOSITORY_PATH)
         logging.info("Uploading Enabled Repositories Report ->  %s" % str(report))
         upload_enabled_repos_report(report)
     except:
         logging.error("Unable to upload Enabled Repositories Report - %s" % traceback.format_exc())
     self.ack()
 def PLUGINEND(self, headers, body):
     logging.info("Uploading Enabled Repositories Report")
     try:
         report = None
         if not combined_profiles_enabled():
             report = EnabledReport(ZYPPER_REPOSITORY_PATH)
         logging.info("Uploading Enabled Repositories Report ->  %s" % str(report))
         upload_enabled_repos_report(report)
     except:
         logging.error("Unable to upload Enabled Repositories Report - %s" % traceback.format_exc())
     self.ack()
    def transaction(self):
        conf = self.read_config(self.base.conf)
        enabled = (conf.has_section('main')
                   and conf.has_option('main', 'enabled')
                   and conf.getboolean('main', 'enabled'))

        if enabled is True:
            if (conf.has_option('main', 'supress_debug')
                    and not conf.getboolean('main', 'supress_debug')):
                logger.info("Uploading Enabled Repositories Report")
            try:
                report = EnabledReport(REPOSITORY_PATH)
                upload_enabled_repos_report(report)
            except:
                if (conf.has_option('main', 'supress_errors')
                        and not conf.getboolean('main', 'supress_errors')):
                    logger.error(
                        "Unable to upload Enabled Repositories Report")
Beispiel #6
0
def send_enabled_report(path=REPOSITORY_PATH):
    report = EnabledReport(path)
    upload_enabled_repos_report(report)
 def run(self):
     if self.opts.forceupload:
         EnabledRepoCache.remove_cache()
     report = EnabledReport(REPOSITORY_PATH)
     upload_enabled_repos_report(report)
def send_enabled_report(path=REPOSITORY_PATH):
    report = EnabledReport(path)
    upload_enabled_repos_report(report)