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

New options to Interface #60499

Merged
merged 3 commits into from Aug 28, 2019
Merged

New options to Interface #60499

merged 3 commits into from Aug 28, 2019

Conversation

carchi8py
Copy link
Contributor

SUMMARY

New Options for Interface

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • na_ontap_interface.py
ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Aug 13, 2019

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 feature This issue/PR relates to a feature request. 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. needs_triage Needs a first human triage before being processed. netapp storage support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Aug 13, 2019
@carchi8py
Copy link
Contributor Author

@thedoubl3j how do we force ansibot to return this?

@ansibot
Copy link
Contributor

ansibot commented Aug 19, 2019

The test ansible-test sanity --test import --python 3.8 [explain] failed with 1 error:

lib/ansible/modules/storage/netapp/na_ontap_interface.py:266:0: SyntaxWarning: "is not" with a literal. Did you mean "!="?

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Aug 19, 2019
Copy link
Member

@thedoubl3j thedoubl3j left a comment

Choose a reason for hiding this comment

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

docs look clear, just need CI fixed.

@thedoubl3j thedoubl3j self-assigned this Aug 20, 2019
if parameters.get('dns_domain_name') is not None:
options['dns-domain-name'] = parameters['dns_domain_name']
if parameters.get('listen_for_dns_query') is not None:
options['listen-for-dns-query'] = str(parameters['listen_for_dns_query'])
Copy link
Contributor

@lonico lonico Aug 20, 2019

Choose a reason for hiding this comment

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

Is it enough to use str, or do we need to convert to lowercase?

Look also at line 296. Should we use the same construct?

Copy link
Contributor

Choose a reason for hiding this comment

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

I confirmed the ZAPI accepts both False and false, or True and true, so this is OK as is.

It's only when making comparisons with returned values (get), that we need to be case sensitive.

@@ -237,6 +263,14 @@ def get_interface(self):
return_value['netmask'] = interface_attributes['netmask']
if interface_attributes.get_child_by_name('firewall-policy'):
return_value['firewall_policy'] = interface_attributes['firewall-policy']
if interface_attributes.get_child_by_name('dns-domain-name') is not 'none':
Copy link
Contributor

Choose a reason for hiding this comment

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

should be != 'none'

is not None is correct. is not 'none' is not correct.

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Aug 20, 2019
@thedoubl3j
Copy link
Member

@carchi8py @lonico still waiting on fixes for this one

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 26, 2019
Copy link
Contributor

@lonico lonico left a comment

Choose a reason for hiding this comment

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

shipit

@ansibot ansibot added shipit This PR is ready to be merged by Core and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 26, 2019
Copy link
Member

@thedoubl3j thedoubl3j left a comment

Choose a reason for hiding this comment

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

lgtm, tests updated with new features. shipit

@thedoubl3j thedoubl3j merged commit 49cff3d into ansible:devel Aug 28, 2019
adharshsrivatsr pushed a commit to adharshsrivatsr/ansible that referenced this pull request Sep 3, 2019
* update to interface

* force ansibot to run again

* fixes
anas-shami pushed a commit to anas-shami/ansible that referenced this pull request Sep 23, 2019
* update to interface

* force ansibot to run again

* fixes
@ansible ansible locked and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 feature This issue/PR relates to a feature request. module This issue/PR relates to a module. netapp shipit This PR is ready to be merged by Core storage 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

4 participants