Fixed flake8 warnings (#1676)
This commit is contained in:
parent
8f6cc07062
commit
f0a6adb96d
|
|
@ -319,7 +319,7 @@ class Installer:
|
||||||
|
|
||||||
partition.mount(f'{self.target}{mountpoint}', options=options)
|
partition.mount(f'{self.target}{mountpoint}', options=options)
|
||||||
|
|
||||||
def add_swapfile(self, size = '4G', enable_resume = True, file='/swapfile'):
|
def add_swapfile(self, size='4G', enable_resume=True, file='/swapfile'):
|
||||||
if file[:1] != '/':
|
if file[:1] != '/':
|
||||||
file = f"/{file}"
|
file = f"/{file}"
|
||||||
if len(file.strip()) <= 0 or file == '/':
|
if len(file.strip()) <= 0 or file == '/':
|
||||||
|
|
@ -457,7 +457,6 @@ class Installer:
|
||||||
for entry in self.FSTAB_ENTRIES:
|
for entry in self.FSTAB_ENTRIES:
|
||||||
fstab_fh.write(f'{entry}\n')
|
fstab_fh.write(f'{entry}\n')
|
||||||
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_hostname(self, hostname: str, *args :str, **kwargs :str) -> None:
|
def set_hostname(self, hostname: str, *args :str, **kwargs :str) -> None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue