Skip to content

[minigraph.py]: Check for empty cluster tag before parsing#6440

Merged
lguohan merged 1 commit intosonic-net:masterfrom
theasianpianist:backend-nonetype-fix
Jan 15, 2021
Merged

[minigraph.py]: Check for empty cluster tag before parsing#6440
lguohan merged 1 commit intosonic-net:masterfrom
theasianpianist:backend-nonetype-fix

Conversation

@theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Jan 13, 2021

Signed-off-by: Lawrence Lee lawlee@microsoft.com

- Why I did it
Some non-production minigraphs will have an empty ClusterName tag

- How I did it
Check if ClusterName tag is empty before trying to access text

- How to verify it

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
image

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist
Copy link
Contributor Author

retest vsimage please

@lguohan lguohan merged commit ffcef27 into sonic-net:master Jan 15, 2021
@lguohan
Copy link
Collaborator

lguohan commented Jan 15, 2021

this is also needed for 202012, right?

lguohan pushed a commit that referenced this pull request Jan 15, 2021
Some non-production minigraphs will have an empty ClusterName tag

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist theasianpianist deleted the backend-nonetype-fix branch January 15, 2021 19:25
abdosi pushed a commit that referenced this pull request Jan 28, 2021
Some non-production minigraphs will have an empty ClusterName tag

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
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.

5 participants