Scott Moser has proposed merging
~smoser/cloud-init:bug/1703697-python3.6-ubuntu into cloud-init:master.
Requested reviews:
cloud-init commiters (cloud-init-dev)
Related bugs:
Bug #1703697 in cloud-init: "tox fails under python 3.6"
https://bugs.launchpad.net/cloud-init/+bug/1703697
For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/327344
--
Your team cloud-init commiters is requested to review the proposed merge of
~smoser/cloud-init:bug/1703697-python3.6-ubuntu into cloud-init:master.
diff --git a/cloudinit/net/netplan.py b/cloudinit/net/netplan.py
index 6754330..9f35b72 100644
--- a/cloudinit/net/netplan.py
+++ b/cloudinit/net/netplan.py
@@ -209,7 +209,8 @@ class Renderer(renderer.Renderer):
# check network state for version
# if v2, then extract network_state.config
# else render_v2_from_state
- fpnplan = os.path.join(target, self.netplan_path)
+ fpnplan = os.path.join(util.target_path(target), self.netplan_path)
+
util.ensure_dir(os.path.dirname(fpnplan))
header = self.netplan_header if self.netplan_header else ""
_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help : https://help.launchpad.net/ListHelp