Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/managednetworkfabric/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

8.0.0b4
++++++
* Fixes 'device run-ro' command for missing fields in the response.

8.0.0b3
++++++
* Adding custom output formatting for 'device' run-ro command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ def _output(parent_cmd, *args, **kwargs): # pylint: disable=unused-argument
op_response = parent_cmd.ctx.vars.instance.properties.to_serialized_data()

new_properties = {}
new_properties["configurationState"] = op_response["configurationState"]
new_properties["outputUrl"] = op_response["outputUrl"]

if has_value(parent_cmd.ctx.vars.instance.properties.configuration_state):
new_properties["configurationState"] = op_response["configurationState"]

if has_value(parent_cmd.ctx.vars.instance.properties.output_url):
new_properties["outputUrl"] = op_response["outputUrl"]

if has_value(
parent_cmd.ctx.vars.instance.properties.device_configuration_preview
Expand All @@ -50,6 +54,6 @@ def _output(parent_cmd, *args, **kwargs): # pylint: disable=unused-argument
logger.warning(json_string)
new_properties["deviceConfigurationPreview"] = json_string
else:
new_properties["deviceConfigurationPreview"] = "{}"
new_properties["deviceConfigurationPreview"] = {}

return new_properties
Loading
Loading