I am using below quota module to create quota but at NetApp end, I am seeing two entries of quota instead of one:
netapp.ontap.na_ontap_quotas:
hostname: "{{ host_name }}"
username: "{{ username }}"
password: "{{ password }}"
state: present
vserver: "{{ svm }}"
volume: "{{ finalvolname }}"
quota_target: "{{ finalvolumenumber }}-01"
type: tree
disk_limit: "{{ quota_size | int }}"
set_quota_status: True
validate_certs: "{{ validate_certs | default ('false') }}"
use_rest: always
netapp quota policy output:
nas01::> quota policy rule show -vserver nlfsprdcn40181 -volume nfs1904
Vserver: nlfsprdcn40181 Policy: default Volume: nfs1904
Soft Soft
User Disk Disk Files Files
Type Target Qtree Mapping Limit Limit Limit Limit Threshold
tree "" "" - - - - - -
tree 1904-01 "" - 1GB - - - -
2 entries were displayed.
The second entry with target 1904-01 is correct and what I expect to be created with this module but the first entry with target "" I dont want that entry.
When we create quote policy rule manually, once one entry gets created.