Fix "NAMESERVERS" environment variable usage in tests.

1. Delete "nameservers" from kube_settings in test_stacklight.py
  2. Delete "nameservers" from kube_settings in test_appcontroller.py
  3. Delete appropriate variable NAMESERVERS in settings.py
  4. Use yaml.safe_dump instead of yaml.dump while dumping custom_yaml

Change-Id: I46937d29330079aae5b8350414a5cb9731997817
This commit is contained in:
Sergey Lebedev
2016-09-19 10:48:58 +03:00
parent 1c12dc5620
commit 2b72da562d
4 changed files with 8 additions and 12 deletions

View File

@@ -114,7 +114,7 @@ class K8SManager(object):
if custom_yaml:
self.set_dns(custom_yaml)
environment_variables.update(
{"CUSTOM_YAML": yaml.dump(
{"CUSTOM_YAML": yaml.safe_dump(
custom_yaml, default_flow_style=False)}
)
if env_var: