Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/generate config json for ftd api docs #122

Conversation

kalinindenys
Copy link
Collaborator

No description provided.

docs/build.py Outdated
@@ -230,6 +233,7 @@ def _generate_docs(args, api_client):
_generate_ansible_docs(args, api_spec, template_ctx)
elif args.doctype == DocType.ftd_api:
error_codes = api_client.fetch_error_codes()
template_ctx['error_codes'] = bool(False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to set this variable here? Shouldn't Error Codes section be a part of config.json?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(Changed to bool(error_codes))
Devices before 6.4 don't have error codes file, so in this case, error_codes.md file will not be present

@annikulin annikulin merged commit 26a4039 into CiscoDevNet:master May 25, 2020
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