IPv6 Distributed Cloud: update to bootstrap overrides formatting
Some bootstrap overrides were being written to the subcloud yaml file as unicode strings, including ipv6 dns addresses, which causes ansible to fail when parsing the yaml during the subcloud bootstrapping Change-Id: I43f1776a9f2d8a7d45221946e62dc31ac9f6d1d9 Partial-Bug: 1844190 Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
This commit is contained in:
parent
2c538b9e52
commit
9c5727995f
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import filecmp
|
import filecmp
|
||||||
|
import json
|
||||||
import keyring
|
import keyring
|
||||||
import netaddr
|
import netaddr
|
||||||
import os
|
import os
|
||||||
|
@ -348,7 +349,7 @@ class SubcloudManager(manager.Manager):
|
||||||
)
|
)
|
||||||
|
|
||||||
for k, v in payload.items():
|
for k, v in payload.items():
|
||||||
f_out_overrides_file.write("%s: %s\n" % (k, v))
|
f_out_overrides_file.write("%s: %s\n" % (k, json.dumps(v)))
|
||||||
|
|
||||||
def _delete_subcloud_routes(self, context, subcloud):
|
def _delete_subcloud_routes(self, context, subcloud):
|
||||||
"""Delete the routes to this subcloud"""
|
"""Delete the routes to this subcloud"""
|
||||||
|
|
Loading…
Reference in New Issue