mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-03-28 14:25:38 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -122,3 +122,4 @@ system {
|
||||
}
|
||||
time-zone UTC
|
||||
}
|
||||
[edit]
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user