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

Update win_certificate_store.py #38860

Merged
merged 2 commits into from
Apr 18, 2018
Merged

Update win_certificate_store.py #38860

merged 2 commits into from
Apr 18, 2018

Conversation

lingfish
Copy link
Contributor

Improvements to describe the different destination stores.

+label: docsite_pr

SUMMARY

The options provided weren't clear enough (for me anyway).

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

win_certificate_store

ANSIBLE VERSION

current

ADDITIONAL INFORMATION

None.

Improvements to describe the different destination stores.

+label: docsite_pr
@ansibot
Copy link
Contributor

ansibot commented Apr 17, 2018

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. docs This issue/PR relates to or includes documentation. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community labels Apr 17, 2018
@ansibot
Copy link
Contributor

ansibot commented Apr 17, 2018

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/windows/win_certificate_store.py:0:0: missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/windows/win_certificate_store.py:0:0: missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/windows/win_certificate_store.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/windows/win_certificate_store.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/windows/win_certificate_store.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test validate-modules [explain] failed with 8 errors:

lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.1: expected str @ data['options']['store_name']['description'][1]. Got {'C(AddressBook)': 'The X.509 certificate store for other users'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.2: expected str @ data['options']['store_name']['description'][2]. Got {'C(AuthRoot)': 'The X.509 certificate store for third-party certificate authorities (CAs)'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.3: expected str @ data['options']['store_name']['description'][3]. Got {'C(CertificateAuthority)': 'The X.509 certificate store for intermediate certificate authorities (CAs)'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.4: expected str @ data['options']['store_name']['description'][4]. Got {'C(Disallowed)': 'The X.509 certificate store for revoked certificates'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.5: expected str @ data['options']['store_name']['description'][5]. Got {'C(My)': 'The X.509 certificate store for personal certificates'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.6: expected str @ data['options']['store_name']['description'][6]. Got {'C(Root)': 'The X.509 certificate store for trusted root certificate authorities (CAs)'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.7: expected str @ data['options']['store_name']['description'][7]. Got {'C(TrustedPeople)': 'The X.509 certificate store for directly trusted people and resources'}
lib/ansible/modules/windows/win_certificate_store.py:0:0: E305 DOCUMENTATION.options.store_name.description.8: expected str @ data['options']['store_name']['description'][8]. Got {'C(TrustedPublisher)': 'The X.509 certificate store for directly trusted publishers'}

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Apr 17, 2018
@@ -48,6 +48,14 @@
description:
- The store name to use when importing a certificate or searching for a
certificate.
- C(AddressBook): The X.509 certificate store for other users
Copy link
Contributor

Choose a reason for hiding this comment

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

Because you have : (with the space), you need to quote the entire line for it to be valid yaml.

Another option, instead of adding the description for each option is to just give a link to the Enum in the .net docs https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.storename.aspx. I'll leave it up to you what you would like to have as I don't mind either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, ok sorry about that. I think I'll leave the (mostly won't change) text. MS have a nice habit of breaking their links.

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Apr 17, 2018
Whole line needs to be quoted -- lingfish YAML fail.
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Apr 18, 2018
@jborean93 jborean93 merged commit d684c51 into ansible:devel Apr 18, 2018
jborean93 pushed a commit to jborean93/ansible that referenced this pull request Apr 18, 2018
* Update win_certificate_store.py

Improvements to describe the different destination stores.

+label: docsite_pr

* Update win_certificate_store.py

Whole line needs to be quoted -- lingfish YAML fail.

(cherry picked from commit d684c51)
@jborean93
Copy link
Contributor

Backport PR to stable-2.5 #38927

jborean93 added a commit that referenced this pull request Apr 18, 2018
* Update win_certificate_store.py

Improvements to describe the different destination stores.

+label: docsite_pr

* Update win_certificate_store.py

Whole line needs to be quoted -- lingfish YAML fail.

(cherry picked from commit d684c51)
@lingfish lingfish deleted the patch-1 branch April 19, 2018 00:05
@dagwieers dagwieers added the docsite_pr This PR is created from documentation using the "Edit on GitHub" link. label Apr 20, 2018
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
* Update win_certificate_store.py

Improvements to describe the different destination stores.

+label: docsite_pr

* Update win_certificate_store.py

Whole line needs to be quoted -- lingfish YAML fail.
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs This issue/PR relates to or includes documentation. docsite_pr This PR is created from documentation using the "Edit on GitHub" link. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants