Skip to content

Commit d77ae59

Browse files
committed
Fix lint issues
1 parent c6c0ff0 commit d77ae59

14 files changed

+903
-904
lines changed

plugins/modules/consistencygroup.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@
267267
validate_certs: "{{validate_certs}}"
268268
cg_id: "{{cg_id}}"
269269
hosts:
270-
- host_name: "10.226.198.248"
271-
- host_id: "Host_511"
270+
- host_name: "10.226.198.248"
271+
- host_id: "Host_511"
272272
mapping_state: "mapped"
273273
state: "present"
274274
@@ -280,8 +280,8 @@
280280
validate_certs: "{{validate_certs}}"
281281
cg_id: "{{cg_id}}"
282282
hosts:
283-
- host_id: "Host_511"
284-
- host_name: "10.226.198.248"
283+
- host_id: "Host_511"
284+
- host_name: "10.226.198.248"
285285
mapping_state: "unmapped"
286286
state: "present"
287287
@@ -293,8 +293,8 @@
293293
validate_certs: "{{validate_certs}}"
294294
cg_name: "{{new_cg_name}}"
295295
volumes:
296-
- vol_name: "Ansible_Test-3"
297-
- vol_id: "sv_1744"
296+
- vol_name: "Ansible_Test-3"
297+
- vol_id: "sv_1744"
298298
vol_state: "{{vol_state_absent}}"
299299
state: "present"
300300
@@ -315,16 +315,16 @@
315315
validate_certs: "{{validate_certs}}"
316316
cg_id: "cg_id_1"
317317
replication_params:
318-
destination_cg_name: "destination_cg_1"
319-
replication_mode: "asynchronous"
320-
rpo: 60
321-
replication_type: "remote"
322-
remote_system:
323-
remote_system_host: '10.1.2.3'
324-
remote_system_verifycert: false
325-
remote_system_username: 'username'
326-
remote_system_password: 'password'
327-
destination_pool_name: "pool_test_1"
318+
destination_cg_name: "destination_cg_1"
319+
replication_mode: "asynchronous"
320+
rpo: 60
321+
replication_type: "remote"
322+
remote_system:
323+
remote_system_host: '10.1.2.3'
324+
remote_system_verifycert: false
325+
remote_system_username: 'username'
326+
remote_system_password: 'password'
327+
destination_pool_name: "pool_test_1"
328328
replication_state: "enable"
329329
state: "present"
330330

plugins/modules/filesystem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@
327327
pool_name: "pool_1"
328328
size: 5
329329
quota_config:
330-
grace_period: 8
331-
grace_period_unit: "days"
332-
default_soft_limit: 10
333-
is_user_quota_enabled: false
330+
grace_period: 8
331+
grace_period_unit: "days"
332+
default_soft_limit: 10
333+
is_user_quota_enabled: false
334334
state: "present"
335335
336336
- name: Expand FileSystem size
@@ -451,7 +451,7 @@
451451
validate_certs: "{{validate_certs}}"
452452
filesystem_id: "rs_405"
453453
replication_params:
454-
replication_name: "test_replication"
454+
replication_name: "test_replication"
455455
replication_state: "disable"
456456
state: "present"
457457
"""

plugins/modules/filesystem_snapshot.py

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -112,91 +112,91 @@
112112
'''
113113

114114
EXAMPLES = r'''
115-
- name: Create Filesystem Snapshot
116-
dellemc.unity.filesystem_snapshot:
117-
unispherehost: "{{unispherehost}}"
118-
username: "{{username}}"
119-
password: "{{password}}"
120-
validate_certs: "{{validate_certs}}"
121-
snapshot_name: "ansible_test_FS_snap"
122-
filesystem_name: "ansible_test_FS"
123-
nas_server_name: "lglad069"
124-
description: "Created using playbook"
125-
auto_delete: true
126-
fs_access_type: "Protocol"
127-
state: "present"
128-
129-
- name: Create Filesystem Snapshot with expiry time
130-
dellemc.unity.filesystem_snapshot:
131-
unispherehost: "{{unispherehost}}"
132-
username: "{{username}}"
133-
password: "{{password}}"
134-
validate_certs: "{{validate_certs}}"
135-
snapshot_name: "ansible_test_FS_snap_1"
136-
filesystem_name: "ansible_test_FS_1"
137-
nas_server_name: "lglad069"
138-
description: "Created using playbook"
139-
expiry_time: "04/15/2021 2:30"
140-
fs_access_type: "Protocol"
141-
state: "present"
142-
143-
- name: Get Filesystem Snapshot Details using Name
144-
dellemc.unity.filesystem_snapshot:
145-
unispherehost: "{{unispherehost}}"
146-
username: "{{username}}"
147-
password: "{{password}}"
148-
validate_certs: "{{validate_certs}}"
149-
snapshot_name: "ansible_test_FS_snap"
150-
state: "present"
151-
152-
- name: Get Filesystem Snapshot Details using ID
153-
dellemc.unity.filesystem_snapshot:
154-
unispherehost: "{{unispherehost}}"
155-
username: "{{username}}"
156-
password: "{{password}}"
157-
validate_certs: "{{validate_certs}}"
158-
snapshot_id: "10008000403"
159-
state: "present"
160-
161-
- name: Update Filesystem Snapshot attributes
162-
dellemc.unity.filesystem_snapshot:
163-
unispherehost: "{{unispherehost}}"
164-
username: "{{username}}"
165-
password: "{{password}}"
166-
validate_certs: "{{validate_certs}}"
167-
snapshot_name: "ansible_test_FS_snap"
168-
description: "Description updated"
169-
auto_delete: false
170-
expiry_time: "04/15/2021 5:30"
171-
state: "present"
172-
173-
- name: Update Filesystem Snapshot attributes using ID
174-
dellemc.unity.filesystem_snapshot:
175-
unispherehost: "{{unispherehost}}"
176-
username: "{{username}}"
177-
password: "{{password}}"
178-
validate_certs: "{{validate_certs}}"
179-
snapshot_id: "10008000403"
180-
expiry_time: "04/18/2021 8:30"
181-
state: "present"
182-
183-
- name: Delete Filesystem Snapshot using Name
184-
dellemc.unity.filesystem_snapshot:
185-
unispherehost: "{{unispherehost}}"
186-
username: "{{username}}"
187-
password: "{{password}}"
188-
validate_certs: "{{validate_certs}}"
189-
snapshot_name: "ansible_test_FS_snap"
190-
state: "absent"
191-
192-
- name: Delete Filesystem Snapshot using ID
193-
dellemc.unity.filesystem_snapshot:
194-
unispherehost: "{{unispherehost}}"
195-
username: "{{username}}"
196-
password: "{{password}}"
197-
validate_certs: "{{validate_certs}}"
198-
snapshot_id: "10008000403"
199-
state: "absent"
115+
- name: Create Filesystem Snapshot
116+
dellemc.unity.filesystem_snapshot:
117+
unispherehost: "{{unispherehost}}"
118+
username: "{{username}}"
119+
password: "{{password}}"
120+
validate_certs: "{{validate_certs}}"
121+
snapshot_name: "ansible_test_FS_snap"
122+
filesystem_name: "ansible_test_FS"
123+
nas_server_name: "lglad069"
124+
description: "Created using playbook"
125+
auto_delete: true
126+
fs_access_type: "Protocol"
127+
state: "present"
128+
129+
- name: Create Filesystem Snapshot with expiry time
130+
dellemc.unity.filesystem_snapshot:
131+
unispherehost: "{{unispherehost}}"
132+
username: "{{username}}"
133+
password: "{{password}}"
134+
validate_certs: "{{validate_certs}}"
135+
snapshot_name: "ansible_test_FS_snap_1"
136+
filesystem_name: "ansible_test_FS_1"
137+
nas_server_name: "lglad069"
138+
description: "Created using playbook"
139+
expiry_time: "04/15/2021 2:30"
140+
fs_access_type: "Protocol"
141+
state: "present"
142+
143+
- name: Get Filesystem Snapshot Details using Name
144+
dellemc.unity.filesystem_snapshot:
145+
unispherehost: "{{unispherehost}}"
146+
username: "{{username}}"
147+
password: "{{password}}"
148+
validate_certs: "{{validate_certs}}"
149+
snapshot_name: "ansible_test_FS_snap"
150+
state: "present"
151+
152+
- name: Get Filesystem Snapshot Details using ID
153+
dellemc.unity.filesystem_snapshot:
154+
unispherehost: "{{unispherehost}}"
155+
username: "{{username}}"
156+
password: "{{password}}"
157+
validate_certs: "{{validate_certs}}"
158+
snapshot_id: "10008000403"
159+
state: "present"
160+
161+
- name: Update Filesystem Snapshot attributes
162+
dellemc.unity.filesystem_snapshot:
163+
unispherehost: "{{unispherehost}}"
164+
username: "{{username}}"
165+
password: "{{password}}"
166+
validate_certs: "{{validate_certs}}"
167+
snapshot_name: "ansible_test_FS_snap"
168+
description: "Description updated"
169+
auto_delete: false
170+
expiry_time: "04/15/2021 5:30"
171+
state: "present"
172+
173+
- name: Update Filesystem Snapshot attributes using ID
174+
dellemc.unity.filesystem_snapshot:
175+
unispherehost: "{{unispherehost}}"
176+
username: "{{username}}"
177+
password: "{{password}}"
178+
validate_certs: "{{validate_certs}}"
179+
snapshot_id: "10008000403"
180+
expiry_time: "04/18/2021 8:30"
181+
state: "present"
182+
183+
- name: Delete Filesystem Snapshot using Name
184+
dellemc.unity.filesystem_snapshot:
185+
unispherehost: "{{unispherehost}}"
186+
username: "{{username}}"
187+
password: "{{password}}"
188+
validate_certs: "{{validate_certs}}"
189+
snapshot_name: "ansible_test_FS_snap"
190+
state: "absent"
191+
192+
- name: Delete Filesystem Snapshot using ID
193+
dellemc.unity.filesystem_snapshot:
194+
unispherehost: "{{unispherehost}}"
195+
username: "{{username}}"
196+
password: "{{password}}"
197+
validate_certs: "{{validate_certs}}"
198+
snapshot_id: "10008000403"
199+
state: "absent"
200200
'''
201201

202202
RETURN = r'''

0 commit comments

Comments
 (0)