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
Added support for infoblox member object #53174
Conversation
@krisvasudevan this PR contains the following merge commits: Please rebase your branch to remove these commits. |
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
|
@@ -31,7 +31,6 @@ | |||
from ansible.module_utils._text import to_native | |||
from ansible.module_utils.six import iteritems | |||
from ansible.module_utils._text import to_text | |||
from ansible.module_utils.basic import env_fallback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krisvasudevan why have you removed this line?
@@ -55,25 +54,20 @@ | |||
NIOS_SRV_RECORD = 'record:srv' | |||
NIOS_NAPTR_RECORD = 'record:naptr' | |||
NIOS_TXT_RECORD = 'record:txt' | |||
NIOS_NSGROUP = 'nsgroup' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like your branch is not updated, else why have you removed the support for the existing modules.
|
||
NIOS_PROVIDER_SPEC = { | ||
'host': dict(fallback=(env_fallback, ['INFOBLOX_HOST'])), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env_fallback
module is used when user has defined INFOBLOX_HOST
value under env variable. Please undo these changes.
@@ -114,8 +108,8 @@ def normalize_extattrs(value): | |||
extattrs: { | |||
key: { | |||
value: <value> | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the formatting?
@@ -222,29 +238,24 @@ def run(self, ib_obj_type, ib_spec): | |||
# get object reference | |||
ib_obj_ref, update, new_name = self.get_object_ref(self.module, ib_obj_type, obj_filter, ib_spec) | |||
|
|||
proposed_object = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's seems to be many changes that I am unable to understand, from this down below can u comment that why you have made all the changes. Thanks
@krisvasudevan please try to fix all the shippable errors. |
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
@krisvasudevan please update the PR with the unit test case, rest of changes looks fine. Once done, I shall approve and merge the PR. |
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
|
The test
|
SUMMARY
Added support for member object. It supports adding and/or removes Infoblox NIOS servers.
ISSUE TYPE
COMPONENT NAME
nios_member
ADDITIONAL INFORMATION
The module supports various parameters that enable adding a standalone/HA member. It also supports both IPv4 and IPv6.
Changes had to be made to api.py file in order to normalize the input parameters. The member_normalize function will remove any arguments that are set to None since WAPI will error on that condition.