[networkcfg] Don't mindlessly PEP8
This commit is contained in:
parent
bf60d0576b
commit
13d69cb813
@ -98,10 +98,9 @@ def run():
|
|||||||
return (_("Configuration Error"),
|
return (_("Configuration Error"),
|
||||||
_("No root mount point is given for <pre>{!s}</pre> to use." ).format("networkcfg"))
|
_("No root mount point is given for <pre>{!s}</pre> to use." ).format("networkcfg"))
|
||||||
|
|
||||||
source_nm = "/etc/NetworkManager/system-connections/"
|
nm_connections = "etc/NetworkManager/system-connections/"
|
||||||
target_nm = os.path.join(
|
source_nm = "/" + nm_connections
|
||||||
root_mount_point, "etc/NetworkManager/system-connections/"
|
target_nm = os.path.join(root_mount_point, nm_connections)
|
||||||
)
|
|
||||||
|
|
||||||
# Sanity checks. We don't want to do anything if a network
|
# Sanity checks. We don't want to do anything if a network
|
||||||
# configuration already exists on the target
|
# configuration already exists on the target
|
||||||
@ -122,8 +121,7 @@ def run():
|
|||||||
replace_username(target_network, live_user, user)
|
replace_username(target_network, live_user, user)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
libcalamares.utils.debug(
|
libcalamares.utils.debug(
|
||||||
"Can't copy network configuration files in "
|
"Can't copy network configuration files in {}".format(source_network)
|
||||||
+ "{}".format(source_network)
|
|
||||||
)
|
)
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user