'run update for the registry.  This performs a replace if required'

def update(self):

    if self.service:
        svcip = self.service.get('spec.clusterIP')
        if svcip:
            self.svc_ip = svcip
        portip = self.service.get('spec.portalIP')
        if portip:
            self.portal_ip = portip
    results = []
    if self.prepared_registry['deployment_update']:
        results.append(self._replace(self.prepared_registry['deployment_file']))
    if self.prepared_registry['service_update']:
        results.append(self._replace(self.prepared_registry['service_file']))
    rval = 0
    for result in results:
        if (result['returncode'] != 0):
            rval = result['returncode']
    return {'returncode': rval, 'results': results}
