Skip to content

Commit

Permalink
Fix to create PTR record in different network views (#103)
Browse files Browse the repository at this point in the history
* Fix to create PTR record in different network views
* Added environment variable in ansible-test.yaml
  • Loading branch information
anagha-infoblox authored Jan 7, 2022
1 parent 4bd426a commit 30492ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@ jobs:
- name: Setup Integration test Pre-requisites
run: pip install -r /home/runner/.ansible/collections/ansible_collections/infoblox/nios_modules/tests/requirements.txt

- name: Set environment variable
run: echo $ANSIBLE_NIOSSIM_CONTAINER
env:
ANSIBLE_NIOSSIM_CONTAINER: quay.io/ansible/nios-test-container:1.4.0

# Run the integration tests
- name: Run integration test
run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python-version }} --docker --coverage
run: |
echo $ANSIBLE_NIOSSIM_CONTAINER
ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python-version }} --docker --coverage
env:
ANSIBLE_NIOSSIM_CONTAINER: quay.io/ansible/nios-test-container:1.4.0
working-directory: /home/runner/.ansible/collections/ansible_collections/infoblox/nios_modules/

# ansible-test support producing code coverage date
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/nios_ptr_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():
# Module entry point
ib_spec = dict(
name=dict(required=False),
view=dict(default='default', aliases=['dns_view']),
view=dict(default='default', aliases=['dns_view'], ib_req=True),
ipv4addr=dict(aliases=['ipv4'], ib_req=True),
ipv6addr=dict(aliases=['ipv6'], ib_req=True),
ptrdname=dict(required=True, ib_req=True),
Expand Down

0 comments on commit 30492ad

Please # to comment.