← Back to team overview

livepatch-charmers team mailing list archive

[Merge] ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master

 

Barry Price has proposed merging ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master.

Commit message:
Remove spurious whitespace

Requested reviews:
  Livepatch charm developers (livepatch-charmers)

For more details, see:
https://code.launchpad.net/~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm/+merge/355116
-- 
Your team Livepatch charm developers is requested to review the proposed merge of ~barryprice/canonical-livepatch-charm/+git/canonical-livepatch-charm:master into canonical-livepatch-charm:master.
diff --git a/files/check_canonical-livepatch.py b/files/check_canonical-livepatch.py
index e4eaa91..7878169 100755
--- a/files/check_canonical-livepatch.py
+++ b/files/check_canonical-livepatch.py
@@ -53,15 +53,15 @@ def check_status():
             line = line.strip()
             if 'State:' in line:
                 if 'apply-failed' in line:
-                    err_lines.append('Livepatch failed to apply patches. ')
+                    err_lines.append('Livepatch failed to apply patches.')
                 elif 'check-failed' in line:
-                    err_lines.append('Livepatch failed to check the remote service for patches. ')
+                    err_lines.append('Livepatch failed to check the remote service for patches.')
                 elif 'unknown' in line:
-                    err_lines.append('Livepatch reports an unknown error. ')
+                    err_lines.append('Livepatch reports an unknown error.')
                 elif 'kernel-upgrade-required' in line:
-                    err_lines.append('A kernel upgrade (and reboot) is required. ')
+                    err_lines.append('A kernel upgrade (and reboot) is required.')
             elif 'Machine is not enabled' in line:
-                err_lines.append('Machine is not enabled. ')
+                err_lines.append('Machine is not enabled.')
 
     if err_lines:
         err = " ".join(err_lines)

References