'modify the deployment config'

def add_modifications(self, deploymentconfig):

    edit_results = []
    for edit in self.config.config_options['edits'].get('value', []):
        if (edit['action'] == 'put'):
            edit_results.append(deploymentconfig.put(edit['key'], edit['value']))
        if (edit['action'] == 'update'):
            edit_results.append(deploymentconfig.update(edit['key'], edit['value'], edit.get('index', None), edit.get('curr_value', None)))
        if (edit['action'] == 'append'):
            edit_results.append(deploymentconfig.append(edit['key'], edit['value']))
    if (edit_results and (not any([res[0] for res in edit_results]))):
        return None
    return deploymentconfig
