Fix sanitized_test, Add str return to candidate

Change the expected results of sanitized test.
If candidate config is None return empty string
This commit is contained in:
Marcus Hoff committed 2020-10-22 18:28:34 +02:00
1 parent d970ad22c9
commit 1200cf4328
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -941,7 +941,7 @@ class VyOSDriver(NetworkDriver):
if retrieve in ["startup", "all"]:
config_dict['startup'] = self.device.send_command(f"cat {self._BOOT_FILENAME}")
if retrieve in ["candidate", "all"]:
config_dict['candidate'] = self._new_config
config_dict['candidate'] = self._new_config or ""
return config_dict