os-net-config -i <interface> shows invalid json
Bug #1973566 reported by
Takashi Kajinami
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
Fix Released
|
Critical
|
Takashi Kajinami |
Bug Description
The os-net-config cli provides the -i option which allows users to identify the real interface for a nic name.
However this command shows invalid json data which can't be parsed by general tooling like jq.
~~~
$ os-net-config -i nic1 | jq .
parse error: Invalid numeric literal at line 1, column 8
~~~
The issue is caused by usage of single quotes(') instead of double quotes(").
~~~
$ os-net-config -i nic1
{'nic1': 'eth0'}
~~~
Changed in os-net-config: | |
importance: | Undecided → Critical |
assignee: | nobody → Takashi Kajinami (kajinamit) |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /os-net- config/ +/841830
Review: https:/