def mask_id_and_key(self, name, logger):
    '\n        masks the app_id and app_key in inputs.conf\n    '
    (kind, input_name) = name.split('://')
    item = self.service.inputs.__getitem__((input_name, kind))
    try:
        new_input = {'vaultName': item.content.vaultName, 'SPNTenantID': item.content.SPNTenantID, 'SPNApplicationId': MASK, 'SPNApplicationKey': MASK, 'SubscriptionId': item.content.SubscriptionId, 'secretName': item.content.secretName, 'secretVersion': item.content.secretVersion, 'index': item.content.index, 'interval': item.content.interval, 'sourcetype': item.content.sourcetype}
        item.update(**new_input).refresh()
    except Exception as e:
        logger('ERROR', 'Error caught in mask_id_and_key: {0}'.format(e))
masks the app_id and app_key in inputs.conf
def mask_id_and_key(self, name, logger):
    '\n        \n    '
    (kind, input_name) = name.split('://')
    item = self.service.inputs.__getitem__((input_name, kind))
    try:
        new_input = {'vaultName': item.content.vaultName, 'SPNTenantID': item.content.SPNTenantID, 'SPNApplicationId': MASK, 'SPNApplicationKey': MASK, 'SubscriptionId': item.content.SubscriptionId, 'secretName': item.content.secretName, 'secretVersion': item.content.secretVersion, 'index': item.content.index, 'interval': item.content.interval, 'sourcetype': item.content.sourcetype}
        item.update(**new_input).refresh()
    except Exception as e:
        logger('ERROR', 'Error caught in mask_id_and_key: {0}'.format(e))