Skip to content

[conn_graph_facts] Fix single inventory parsing error#1714

Merged
lguohan merged 1 commit intosonic-net:masterfrom
neethajohn:fix_graph
May 30, 2020
Merged

[conn_graph_facts] Fix single inventory parsing error#1714
lguohan merged 1 commit intosonic-net:masterfrom
neethajohn:fix_graph

Conversation

@neethajohn
Copy link
Contributor

Signed-off-by: Neetha John nejo@microsoft.com

Description of PR

Fixed the issue where parsing wasn't correct while specifying single inventory file

Type of change

  • [x ] Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

How did you verify/test it?

Verified that the inv name is extracted properly

Signed-off-by: Neetha John <nejo@microsoft.com>
inv_files = []
if isinstance(inv_opt, str):
inv_files = (duthost.host.options['inventory']) # Make it iterable for later use
inv_files = [duthost.host.options['inventory']] # Make it iterable for later use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a comma separated list? Looks like this line is broken too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a comma separated list. refer #1645. @tahmed-dev , can you fix that line as a separate PR. Not sure if there are other places as well

@lguohan lguohan merged commit 2ccf40b into sonic-net:master May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants