Skip to content

Conversation

rahul-sundaresan
Copy link
Contributor

@rahul-sundaresan rahul-sundaresan commented Nov 4, 2022

The current method causes the condition to render incorrectly in both apstra 4.0 and 4.1 GUI.
This is because the condition pushed by the library uses single quote but apstra expects double quote in the payload.
This is caused when the library converts the role/id list into a string by using fstrings, which by default renders lists with a single quote.

The screenshot is for 4.1, but 4.0 also shows a similar issue.
Screen Shot 2022-11-04 at 2 00 22 PM

With a simple replace of single quote with double quote, the condition renders correctly in apstra

Screen Shot 2022-11-04 at 2 01 24 PM

@that1guy15
Copy link
Contributor

Please address failed tests and linting.
Can you please also bumped the version number in setup. You might need to rebase of master first.

Copy link
Contributor

@that1guy15 that1guy15 left a comment

Choose a reason for hiding this comment

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

Fix testing and linting failures and bump version number.

@rahul-sundaresan
Copy link
Contributor Author

fixed. I also bumped the version for #41 following semvar guidelines

Copy link
Contributor

@that1guy15 that1guy15 left a comment

Choose a reason for hiding this comment

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

LGTM

@that1guy15 that1guy15 merged commit a061172 into Apstra:main Dec 6, 2022
@rahul-sundaresan rahul-sundaresan deleted the bugfix/fix-condition-apply-configlet branch December 6, 2022 17:00
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