autoupdater: Fix whitespace errors.
BUG=None
TEST=None
Change-Id: If8c4cdf7952df882f63422fc3ceeb5861a9a8cc3
Reviewed-on: https://chromium-review.googlesource.com/301400
Commit-Ready: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
diff --git a/client/common_lib/cros/autoupdater.py b/client/common_lib/cros/autoupdater.py
index 2bc8ce2..4203620 100644
--- a/client/common_lib/cros/autoupdater.py
+++ b/client/common_lib/cros/autoupdater.py
@@ -142,6 +142,7 @@
else:
self.update_version = None
+
def check_update_status(self):
"""Return current status from update-engine."""
update_status = self._run(
@@ -234,13 +235,13 @@
if not os.path.exists(stateful_update_path):
logging.warning('Could not find Chrome OS source location for '
- 'stateful_update script at %s, falling back to chroot '
- 'copy.', stateful_update_path)
+ 'stateful_update script at %s, falling back to '
+ 'chroot copy.', stateful_update_path)
stateful_update_path = LOCAL_CHROOT_STATEFUL_UPDATE_PATH
if not os.path.exists(stateful_update_path):
logging.warning('Could not chroot stateful_update script, falling '
- 'back on client copy.')
+ 'back on client copy.')
statefuldev_script = REMOTE_STATEUL_UPDATE_PATH
else:
self.host.send_file(
@@ -280,7 +281,6 @@
raise RootFSUpdateError('SSH on %s is seeing %s' %
(self.host.hostname, type(e).__name__))
except error.AutoservRunError as e:
-
# Check if the exit code is 255, if so it's probably a generic
# SSH error.
result = e.args[1]
@@ -306,7 +306,7 @@
if status != UPDATER_NEED_REBOOT:
raise RootFSUpdateError('Update did not complete with correct '
'status. Expecting %s, actual %s' %
- (UPDATER_NEED_REBOOT, status))
+ (UPDATER_NEED_REBOOT, status))
def rollback_rootfs(self, powerwash):