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

add azure_rm_webapp_facts module #43631

Merged
merged 21 commits into from
Aug 30, 2018
Merged

Conversation

yungezz
Copy link
Contributor

@yungezz yungezz commented Aug 3, 2018

SUMMARY

add azure_rm_webapp_facts module

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

azure_rm_webapp_facts

ANSIBLE VERSION
ansible 2.7
ADDITIONAL INFORMATION

@yungezz yungezz requested a review from zikalino August 3, 2018 09:02
@ansibot
Copy link
Contributor

ansibot commented Aug 3, 2018

Hi @yungezz,

Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for azure.
You can find other people interested in this in #ansible-azure on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.7 This issue/PR affects Ansible v2.7 azure cloud module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Aug 3, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 3, 2018

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:299:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:315:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:326:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:338:0: trailing-whitespace Trailing whitespace

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

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:42:19: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:236:52: E127 continuation line over-indented for visual indent
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:237:52: E127 continuation line over-indented for visual indent
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:299:23: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:315:23: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:326:1: W293 blank line contains whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:338:1: W293 blank line contains whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:343:1: E303 too many blank lines (3)

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:172:52: E313 RETURN is not valid YAML

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:172:52: error RETURN: syntax error: found unknown escape character 'w'

click here for bot help

@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Aug 3, 2018
@Fred-sun
Copy link
Contributor

@zikalino The PR has ready for revew. Could you help to take a look? Thanks!

@ansibot
Copy link
Contributor

ansibot commented Aug 13, 2018

The test ansible-test sanity --test pylint [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:299:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:315:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:326:0: trailing-whitespace Trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:338:0: trailing-whitespace Trailing whitespace

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

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:42:19: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:236:52: E127 continuation line over-indented for visual indent
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:237:52: E127 continuation line over-indented for visual indent
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:299:23: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:315:23: W291 trailing whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:326:1: W293 blank line contains whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:338:1: W293 blank line contains whitespace
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:343:1: E303 too many blank lines (3)

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:172:52: error RETURN: syntax error: found unknown escape character 'w'

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:172:52: E313 RETURN is not valid YAML

click here for bot help

@Fred-sun
Copy link
Contributor

@yungezz Please help confirm, does this PR ready for review?

returned: always
type: list
example: [{
"app_settings": {
Copy link
Contributor

Choose a reason for hiding this comment

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

return value should be documented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

self.results['ansible_facts']['azure_webapps'][0]['app_settings'] = self.list_webapp_appsettings()

elif self.resource_group:
self.results['ansible_facts']['azure_webapps'] = self.list_by_resource_group()
Copy link
Contributor

Choose a reason for hiding this comment

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

recently the idea is not to place facts inside 'ansible_facts'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then where to put it? has the idea been agreed?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, even mentioned today on the meeting...
also I would rename 'azure_webapps' to just 'webapps', as azure part is a kind of obvious

@ansibot
Copy link
Contributor

ansibot commented Aug 15, 2018

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:280:0: trailing-whitespace Trailing whitespace

The test ansible-test sanity --test pep8 [explain] failed with 6 errors:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:173:27: E222 multiple spaces after operator
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:197:31: E222 multiple spaces after operator
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:214:31: E222 multiple spaces after operator
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:273:58: E201 whitespace after '{'
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:273:100: E202 whitespace before '}'
lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:280:1: W293 blank line contains whitespace

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:69:7: E313 RETURN is not valid YAML

The test ansible-test sanity --test yamllint [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:69:7: error RETURN: syntax error: expected the node content, but found '-'

click here for bot help

- name: net_framework
version: v4.0
- name: node
versoin: '6.6'
Copy link
Contributor

Choose a reason for hiding this comment

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

spelling

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed


results = []
for item in response:
if self.has_tags(item.tags, self.tags):
Copy link
Contributor

Choose a reason for hiding this comment

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

there could be a function to convert entire list, as this code is repeated below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

}
curated_output['frameworks'].append(fx)

# java container setting
Copy link
Contributor

Choose a reason for hiding this comment

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

something missing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

description:
- Other useful properties of the web app, which is not curated to module input.
return: always
type: complex
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe also should be described

@ansibot
Copy link
Contributor

ansibot commented Aug 15, 2018

@brusMX @devigned @gustavomcarmo @haroldwongms @julienstroheker @lmazuel @obsoleted @sozercan @tripdubroot @trstringer @tstringer @xscript @yaweiw @yuwzho

As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add shipit if you would like to see it merged.

click here for bot help

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 15, 2018
lastModifiedTimeUtc:
description: Last modified date of the web app.
type: str
outboundIpAddresses:
Copy link
Contributor

Choose a reason for hiding this comment

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

so this is one or more addresses?

@Fred-sun
Copy link
Contributor

@yungezz Could you help update the comment? Thanks!

@ansibot
Copy link
Contributor

ansibot commented Aug 21, 2018

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/modules/cloud/azure/azure_rm_webapp_facts.py:273:22: too-many-format-args Too many arguments for format string

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 Aug 21, 2018
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed 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. labels Aug 22, 2018
@Fred-sun
Copy link
Contributor

@zikalino Could you help re-review this PR, @yungezz has fixed the error according your comment? Thanks!

@ansibot
Copy link
Contributor

ansibot commented Aug 28, 2018

@zikalino zikalino merged commit b731732 into ansible:devel Aug 30, 2018
@zikalino zikalino deleted the yungez-webappfacts branch August 30, 2018 09:49
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 azure cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants