Skip to content

Commit 6526a41

Browse files
author
Jean-Marc van Leerdam
committed
Command cannot handle leading whitespace
1 parent f754169 commit 6526a41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/src/main/scala/nl/codestar/azurefunctions/DeployFunctionHelper.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ object DeployFunctionHelper {
126126
def deployZipFile(zipFile: File, appName: String, rgName: String, log: ManagedLogger): Unit = {
127127
val zipLocation = zipFile.getAbsolutePath
128128
log.info(s"Uploading $zipLocation into $appName")
129-
val result = (s"az functionapp deployment source config-zip -g $rgName -n $appName --src $zipLocation" !)
129+
val result = (s"""az functionapp deployment source config-zip
130+
| -g $rgName
131+
| -n $appName
132+
| --src $zipLocation
133+
|""".stripMargin.replaceAll("\n", " ") !)
130134
if (result != 0) {
131135
log.error("Failed to upload zip file")
132136
throw new FunctionDeployFailedException("Failed to upload zip file")

0 commit comments

Comments
 (0)