mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 09:41:29 -07:00
Remove redundant defined variable (#55122)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
5dcc178679
commit
1e619c44cd
3 changed files with 2 additions and 4 deletions
|
@ -45,8 +45,6 @@ ADD_OPERATION_NOT_SUPPORTED_ERROR = (
|
||||||
|
|
||||||
PATH_PARAMS_FOR_DEFAULT_OBJ = {'objId': 'default'}
|
PATH_PARAMS_FOR_DEFAULT_OBJ = {'objId': 'default'}
|
||||||
|
|
||||||
PATH_PARAMS_FOR_DEFAULT_OBJ = {'objId': 'default'}
|
|
||||||
|
|
||||||
|
|
||||||
class OperationNamePrefix:
|
class OperationNamePrefix:
|
||||||
ADD = 'add'
|
ADD = 'add'
|
||||||
|
|
|
@ -169,7 +169,7 @@ def create_cpg(
|
||||||
if not validate_set_size(raid_type, set_size):
|
if not validate_set_size(raid_type, set_size):
|
||||||
return (False, False, "Set size %s not part of RAID set %s" % (set_size, raid_type))
|
return (False, False, "Set size %s not part of RAID set %s" % (set_size, raid_type))
|
||||||
if not client_obj.cpgExists(cpg_name):
|
if not client_obj.cpgExists(cpg_name):
|
||||||
ld_layout = dict()
|
|
||||||
disk_patterns = []
|
disk_patterns = []
|
||||||
if disk_type:
|
if disk_type:
|
||||||
disk_type = getattr(client.HPE3ParClient, disk_type)
|
disk_type = getattr(client.HPE3ParClient, disk_type)
|
||||||
|
|
|
@ -890,7 +890,7 @@ class NetAppOntapVolume(object):
|
||||||
return None
|
return None
|
||||||
self.module.fail_json(msg='Error fetching job info: %s' % to_native(error),
|
self.module.fail_json(msg='Error fetching job info: %s' % to_native(error),
|
||||||
exception=traceback.format_exc())
|
exception=traceback.format_exc())
|
||||||
results = dict()
|
|
||||||
job_info = result.get_child_by_name('attributes').get_child_by_name('job-info')
|
job_info = result.get_child_by_name('attributes').get_child_by_name('job-info')
|
||||||
results = {
|
results = {
|
||||||
'job-progress': job_info['job-progress'],
|
'job-progress': job_info['job-progress'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue