infoblox-ansible icon indicating copy to clipboard operation
infoblox-ansible copied to clipboard

clean warnings [WARNING]: Both option ipaddr and its alias ipaddr are set.

Open freedge opened this issue 4 years ago • 2 comments

Using this task:

  - name: configure ipv4 dhcp fixed address based on existing lease
    nios_fixed_address:
      name: "{{ilo}}"
      ipaddr: "{{ lease.address }}"
      mac: "{{ lease.hardware }}"
      network: "{{lease.network }}"
      network_view: "{{lease.network_view}}"
      comment: iLO for {{ inventory_hostname }}
      state: present
      provider: "{{ nios_provider }}"
      extattrs:
        Project: myproject
        Editor: "{{nios_provider.username }}"
    delegate_to: localhost

the task seems to run successfully, but 4 warnings are logged (reproduced here)

[WARNING]: Both option ipaddr and its alias ipaddr are set.
[WARNING]: Both option mac and its alias mac are set.
[WARNING]: Both option network and its alias network are set.
[WARNING]: Both option network_view and its alias network_view are set.

I don't think I am providing these options twice. Is it possible to remove this warning, or can the warning indicate more clearly what is wrong?

Thanks

freedge avatar Sep 14 '20 10:09 freedge

I was not able to reproduce this using version 1.0.2 of the module (latest as we speak). I see this bug was open quite a while ago. Have you tried more recently?

badnetmask avatar Feb 15 '21 21:02 badnetmask

@JchhatbarInfoblox @JkhatriInfobox -- I believe this is a stale bug.

badnetmask avatar Apr 01 '24 17:04 badnetmask