PT 175164317 - Remove PWS as default URL for boot dash CF target

This commit is contained in:
Nieraj Singh
2020-10-08 16:20:14 -07:00
parent f90de4c84b
commit 430da643a9
2 changed files with 2 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 Pivotal, Inc.
* Copyright (c) 2015, 2020 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -171,8 +171,6 @@ public class CloudFoundryTargetWizardModel {
allPropertiesValidator.addChild(storeCredentialsValidator);
allPropertiesValidator.addChild(resolvedSpacesValidator);
allPropertiesValidator.addChild(spaceValidator);
url.setValue(getDefaultTargetUrl());
}
public void setUrl(String url) {
@@ -219,10 +217,6 @@ public class CloudFoundryTargetWizardModel {
return storeCredentials.getValue();
}
protected String getDefaultTargetUrl() {
return "https://api.run.pivotal.io";
}
public OrgsAndSpaces resolveSpaces(IRunnableContext context) {
try {
boolean toFetchSpaces = true;

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2017 Pivotal, Inc.
* Copyright (c) 2015, 2020 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -283,10 +283,6 @@ implements RunTargetWithProperties<CloudFoundryTargetProperties>, RemoteRunTarge
return spaces;
}
public boolean isPWS() {
return "https://api.run.pivotal.io".equals(getUrl());
}
public String getUrl() {
String url = targetProperties.getUrl();
while (url.endsWith("/")) {