summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_rh_subscription.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_rh_subscription.py')
-rw-r--r--cloudinit/config/cc_rh_subscription.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/config/cc_rh_subscription.py b/cloudinit/config/cc_rh_subscription.py
index e57e8a07..cabebca4 100644
--- a/cloudinit/config/cc_rh_subscription.py
+++ b/cloudinit/config/cc_rh_subscription.py
@@ -62,12 +62,12 @@ def handle(_name, cfg, _cloud, log, _args):
return_stat = sm.update_repos(sm.enable_repo, sm.disable_repo)
if not return_stat:
raise SubscriptionError("Unable to add or remove repos")
- sm.log_sucess("rh_subscription plugin completed successfully")
+ sm.log_success("rh_subscription plugin completed successfully")
except SubscriptionError as e:
sm.log_warn(str(e))
sm.log_warn("rh_subscription plugin did not complete successfully")
else:
- sm.log_sucess("System is already registered")
+ sm.log_success("System is already registered")
class SubscriptionError(Exception):
@@ -97,7 +97,7 @@ class SubscriptionManager(object):
self.subman = ['subscription-manager']
self.is_registered = self._is_registered()
- def log_sucess(self, msg):
+ def log_success(self, msg):
'''Simple wrapper for logging info messages. Useful for unittests'''
self.log.info(msg)