'Edit service properties'

def modify_service(self, service, edit_args=None):

    if (edit_args is None):
        edit_args = {}
    svc = (self.services_path + service)
    ret = self.rclient.put(svc, edit_args)
    if (ret.status != restclient.Status.ACCEPTED):
        exception_msg = (_('Error    modifying    Service:    %(service)s    Return    code:    %(ret.status)d    Message:    %(ret.data)s.') % {'service': service, 'ret.status': ret.status, 'ret.data': ret.data})
        LOG.error(exception_msg)
        raise exception.VolumeBackendAPIException(data=exception_msg)
    data = json.loads(ret.data)['service']
    LOG.debug('Modify    %(service)s    service    return    data:    %(data)s', {'service': service, 'data': data})
