Skip to content

Commit 9600bdb

Browse files
committed
fix tag error in eclipse
1 parent bf28659 commit 9600bdb

File tree

1 file changed

+5
-3
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/com/microsoft/azuretools/container/utils

1 file changed

+5
-3
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.container/src/com/microsoft/azuretools/container/utils/WebAppOnLinuxUtil.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import com.microsoft.azuretools.utils.AzureModel;
3838
import com.microsoft.azuretools.utils.AzureModelController;
3939
import com.microsoft.azuretools.utils.CanceledByUserException;
40+
4041
import java.io.IOException;
4142
import java.util.ArrayList;
4243
import java.util.HashMap;
@@ -51,7 +52,7 @@ public class WebAppOnLinuxUtil {
5152

5253
/**
5354
* Create a new Web App on Linux and deploy on it.
54-
*
55+
*
5556
* @param subscriptionId
5657
* @param resourceGroup
5758
* @param appName
@@ -69,7 +70,7 @@ public static WebApp deployToNew(String subscriptionId, String resourceGroup, St
6970

7071
/**
7172
* Deploy on an existing Web App on Linux.
72-
*
73+
*
7374
* @param app
7475
* @return
7576
* @throws IOException
@@ -100,7 +101,7 @@ public static WebApp deployToExisting(SiteInner app) throws IOException {
100101

101102
/**
102103
* List all Web App on Linux under all subscriptions.
103-
*
104+
*
104105
* @param update
105106
* @return list of Web App on Linux
106107
* @throws IOException
@@ -186,6 +187,7 @@ private static WebApp createAppWithNewResourceGroup(Azure azure, String appName,
186187
}
187188

188189
private static WebApp updateApp(WebApp app, PrivateRegistry pr, String imageName) {
190+
app.inner().withTags(null);
189191
app.update().withPrivateRegistryImage(String.format("%s/%s", pr.getUrl(), imageName), pr.getUrl())
190192
.withCredentials(pr.getUsername(), pr.getPassword()).withStartUpCommand(pr.getStartupFile())
191193
.withAppSettings(defaultAppSettings).apply();

0 commit comments

Comments
 (0)