def _set_sdi(self, input_dict):
    if ('source_data_identifier' in input_dict):
        del input_dict['source_data_identifier']
    dict_hash = None
    phantom_version = self._base_connector.get_product_version()
    if (not phantom_version):
        dict_hash = self._create_dict_hash(input_dict)
    else:
        ver_cmp = self.cmp2(phantom_version, HASH_FIXED_PHANTOM_VERSION)
        if (ver_cmp == (- 1)):
            dict_hash = self._create_dict_hash(input_dict)
    if dict_hash:
        input_dict['source_data_identifier'] = dict_hash
    else:
        input_dict['source_data_identifier'] = self._create_dict_hash(input_dict)
    return phantom.APP_SUCCESS
def _set_sdi(self, input_dict):
    if ('source_data_identifier' in input_dict):
        del input_dict['source_data_identifier']
    dict_hash = None
    phantom_version = self._base_connector.get_product_version()
    if (not phantom_version):
        dict_hash = self._create_dict_hash(input_dict)
    else:
        ver_cmp = self.cmp2(phantom_version, HASH_FIXED_PHANTOM_VERSION)
        if (ver_cmp == (- 1)):
            dict_hash = self._create_dict_hash(input_dict)
    if dict_hash:
        input_dict['source_data_identifier'] = dict_hash
    else:
        input_dict['source_data_identifier'] = self._create_dict_hash(input_dict)
    return phantom.APP_SUCCESS