From af59d6cfd9e954dd5fc5c5e562e2e65a93855879 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos <skalkoto@grnet.gr> Date: Fri, 16 May 2014 13:56:46 +0300 Subject: [PATCH] Fix minor flake8 errors --- image_creator/bundle_volume.py | 4 ++-- image_creator/dialog_menu.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py index 1e7539b..a0364ad 100644 --- a/image_creator/bundle_volume.py +++ b/image_creator/bundle_volume.py @@ -372,8 +372,8 @@ class BundleVolume(object): lines = src.readlines() with open(f, 'w') as dest: for line in lines: - for i, uuid in new_uuid.items(): - line = re.sub(orig[i], uuid, line) + for i, new in new_uuid.items(): + line = re.sub(orig[i], new, line) dest.write(line) def _create_filesystems(self, image, partitions): diff --git a/image_creator/dialog_menu.py b/image_creator/dialog_menu.py index 3d9570c..dd83b0b 100644 --- a/image_creator/dialog_menu.py +++ b/image_creator/dialog_menu.py @@ -49,7 +49,7 @@ from image_creator.kamaki_wrapper import Kamaki, ClientError from image_creator.help import get_help_file from image_creator.dialog_util import SMALL_WIDTH, WIDTH, \ update_background_title, confirm_reset, confirm_exit, Reset, \ - extract_image, extract_metadata_string, add_cloud, edit_cloud + extract_image, add_cloud, edit_cloud CONFIGURATION_TASKS = [ ("Partition table manipulation", ["FixPartitionTable"], -- GitLab