Skip to content

adding fix to skip the update of arg keys/values when an error is pre… - #862

Open
huacchob wants to merge 2 commits into
networktocode:developfrom
huacchob:ch-ios-version-regex-nist
Open

huacchob wants to merge 2 commits into
networktocode:developfrom
huacchob:ch-ios-version-regex-nist

Conversation

@huacchob

Copy link
Copy Markdown
Contributor

…sent and type annotation updates

Comment thread netutils/nist.py


class OsPlatform(metaclass=abc.ABCMeta):
class OsPlatform(abc.ABC):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

so largely this is the only actual change? All the mypy typing changes are not needed? Just updates based on newer floor of python version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The change I actually want to implement is in netutils.nist.py line 221 https://github.com/networktocode/netutils/pull/862/changes#diff-e90ca65a37a941e8f2767f35f4b6483dbccc5fb9ca85d74dcc904bb28ac7a748R221

This skips adding the "Error" key to the field_values dict.

This is the error I get when the "Error" key is present:

[12:43:55.465] There was an error in creating URLs for this Software Version. Please check the version value for Cisco cisco_ios 03.03.05SE. ERROR: CiscoIos.__init__() got an unexpected keyword argument 'Error'

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