Skip to content

Conversation

mikewiebe
Copy link
Contributor

Summary:
The behavior has changed in h_dev images for some fields that have structured output.

For example:

On h_dev:

{
  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show snmp",
        "msg": "Success",
        "code": "200",
        "body": {
          "sys_contact": null, <----------- Display unset values as null, (translates to nil in ruby)
          "sys_location": null,

On Older Images:

{
  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show snmp",
        "msg": "Success",
        "code": "200",
        "body": {
          "sys_contact": "",  <----------- Display unset values as empty
          "sys_location": "",

This update fixes our infra to handle both cases.

@mikewiebe mikewiebe requested review from rahushen and saichint April 20, 2018 19:25
@rahushen rahushen merged commit be6fd86 into develop Apr 20, 2018
@chrisvanheuveln chrisvanheuveln deleted the rel190/hdev_fixes branch August 19, 2019 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants