We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6567b commit ededbe1Copy full SHA for ededbe1
carthage_base/roles.py
@@ -40,13 +40,13 @@ async def install_software(self):
40
await self.run_command("apt", "-y", "install", "dnsmasq")
41
await self.run_command('apt', '-y', 'remove', 'systemd-resolved')
42
async with self.filesystem_access() as path:
43
- try: Path(path).joinpath("etc/resolv.conf").unlink()
44
- except FileNotFoundError: pass
45
- with Path(path).joinpath("etc/resolv.conf").open("wt") as f:
+ try:
+ Path(path).joinpath("etc/resolv.conf").unlink()
+ except FileNotFoundError:
46
+ pass
47
+ with Path(path).joinpath("etc/resolv.conf").open("wt") as f:
48
f.write("nameserver 127.0.0.1\n")
49
-
50
install_mako = install_mako_task('model')
51
52
@setup_task("restart dnsmasq")
0 commit comments