Exemplo n.º 1
0
 def main(self):
     managerlib.check_identity_cert_perms()
     ret = CLI.main(self)
     # Try to enable all yum plugins (subscription-manager and plugin-id)
     enabled_yum_plugins = YumPluginManager.enable_pkg_plugins()
     if len(enabled_yum_plugins) > 0:
         print("\n" + _("WARNING") + "\n\n" + YumPluginManager.warning_message(enabled_yum_plugins) + "\n")
     # Try to flush all outputs, see BZ: 1350402
     try:
         sys.stdout.flush()
         sys.stderr.flush()
     except IOError as io_err:
         log.error("Error: Unable to print data to stdout/stderr output during exit process: %s" % io_err)
     return ret