weizhouapache commented on code in PR #9231:
URL: https://github.com/apache/cloudstack/pull/9231#discussion_r1639628215


##########
ui/src/views/infra/zone/ZoneWizardLaunchZone.vue:
##########
@@ -2093,7 +2093,11 @@ export default {
           resolve()
         }).catch(error => {
           message = error.response.headers['x-description']
-          reject(message)
+          if (message.includes('is already in the database')) {

Review Comment:
   yes @sureshanaparti 
   it comes from the error message in API response.
   
   ```
   
plugins/hypervisors/hyperv/src/main/java/com/cloud/hypervisor/hyperv/discoverer/HypervServerDiscoverer.java:
                logger.debug("Skipping " + agentIp + " because " + guidWithTail 
+ " is already in the database.");
   
plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/discoverer/XcpServerDiscoverer.java:
                    logger.debug("Skipping " + record.address + " because " + 
record.uuid + " is already in the database.");
   
server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java:
                        final String msg = "Skipping host " + agentIp + " 
because " + guid + " is already in the database for resource " + 
existingHost.getGuid() + " with ID " + existingHost.getUuid();
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to