diff options
author | Neil Williams <codehelp@debian.org> | 2015-05-02 20:58:54 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-05-02 20:58:54 +0100 |
commit | c916e345d48735abd2decc88a781841edf65ac84 (patch) | |
tree | c9edde57415abeb8d9f2f28bf3acc0b5b2db30e4 | |
parent | 6200c39f9d232d7b4b34b8104b04eab1000dc544 (diff) | |
download | vmdebootstrap-c916e345d48735abd2decc88a781841edf65ac84.tar.gz |
pylint tweaks
-rwxr-xr-x | vmdebootstrap | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vmdebootstrap b/vmdebootstrap index 91dc802..49c21c8 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -396,7 +396,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth if line.startswith('add map ')] if len(devices) != parts: msg = 'Surprising number of partitions - check output of losetup -a' - logging.debug("%s" % self.runcmd(['losetup', '-a'])) + logging.debug("%s", self.runcmd(['losetup', '-a'])) logging.debug("%s: devices=%s parts=%s", msg, devices, parts) raise cliapp.AppException(msg) root = '/dev/mapper/%s' % devices[rootindex] @@ -601,6 +601,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth with open(inittab, 'a') as f: f.write('\nS0:23:respawn:%s\n' % serial_command) + # pylint: disable=no-self-use def _grub_serial_console(self, rootdir): cmdline = 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=tty1 console=ttyS0,38400n8"' terminal = 'GRUB_TERMINAL="serial gfxterm"' @@ -754,7 +755,7 @@ append initrd=%(initrd)s root=UUID=%(uuid)s ro %(kserial)s with open('/dev/tty', 'w') as tty: try: cliapp.runcmd([script, rootdir, self.settings['image']], stdout=tty, stderr=tty) - except IOError as e: + except IOError: subprocess.call([script, rootdir, self.settings['image']]) def create_tarball(self, rootdir): |