Remove redundant defined variable (#55122)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/55566/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent 5dcc178679
commit 1e619c44cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save