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 2020-10-22 18:28:34 +02:00
parent d970ad22c9
commit 1200cf4328
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -122,3 +122,4 @@ system {
} }
time-zone UTC time-zone UTC
} }
[edit]

File diff suppressed because one or more lines are too long