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

[Bug]: hasync module missing state values #360

Closed
rich549 opened this issue Feb 5, 2024 · 0 comments · Fixed by #366
Closed

[Bug]: hasync module missing state values #360

rich549 opened this issue Feb 5, 2024 · 0 comments · Fixed by #366
Assignees
Labels

Comments

@rich549
Copy link

rich549 commented Feb 5, 2024

Summary

The module doesn't allow for any values to be set, it returns an error of:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of state must be one of: , got: present"}

The options in the documentation allow for present as default but the Python code doesn't allow this.

Issue Type

Bug Report

Component Name

netscaler.adc.hasync

Python Version

$ python --version # or python3 --version
Python 3.10.12

Ansible Version

$ ansible --version
ansible [core 2.15.8]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/admin/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

Ansible Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = /etc/ansible/ansible.cfg

netscaler.adc Collection Version

$ ansible-galaxy collection list netscaler.adc
netscaler.adc 2.4.0

Target NetScaler Version

> show ns version
netscaler.adc 2.4.0

Equivalent NetScaler CLI Command

Steps to Reproduce

  - name: Sync HA Config
    netscaler.adc.hasync:
      nsip: "{{ netscaler_ip }}"
      nitro_auth_token: "{{ login_result.sessionid }}"
      state: present
      save_config: yes
      save: 'YES'
      force: true

Expected Results

I expected the module to use the default value of 'present', however it doesn't accept this. #

Actual Results

fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of state must be one of: , got: present"}

Additioinal Notes

No response

@rich549 rich549 added the bug label Feb 5, 2024
sumanth-lingappa added a commit that referenced this issue Feb 9, 2024
Signed-off-by: Sumanth Lingappa <sumanth.lingappa@cloud.com>
@sumanth-lingappa sumanth-lingappa linked a pull request Feb 9, 2024 that will close this issue
sumanth-lingappa added a commit that referenced this issue Feb 9, 2024
…state-values

fixed issue #360 hasync and hafailover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants