public String getDiffMessage()

in cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/VmwareSourceState.java [26:33]


  public String getDiffMessage(final VmwareSourceState vmState) {
    if (!Objects.equals(vmState.mySnapshotName, this.mySnapshotName)) {
      return String.format("Snapshot is outdated. VM: '%s' vs Actual: '%s'", mySnapshotName, vmState.mySnapshotName);
    } else if (!Objects.equals(vmState.mySourceVmId, this.mySourceVmId) && mySourceVmId != null && vmState.mySourceVmId != null) {
      return String.format("Source VM id is outdated. VM: '%s' vs Actual: '%s'", mySourceVmId, vmState.mySourceVmId);
    }
    return null;
  }