Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fixed regression for extensions. Updated docs to remove the rootURL p…
Browse files Browse the repository at this point in the history
…arameter. (#1463)
  • Loading branch information
RobBagby authored and jackfrancis committed Sep 20, 2017
1 parent 1cab24a commit 83e4fdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions extensions/hello-world-dcos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ dcos task log hello-marathon
"extensionProfiles": [
{
"name": "hello-world-dcos",
"version": "v1",
"rootURL": "https://bagbyimages.blob.core.windows.net:443/"
"version": "v1"
}
]

Expand Down
1 change: 0 additions & 1 deletion extensions/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ls -l /var/log
{
"name": "hello-world-dcos",
"version": "v1",
"rootURL": "https://bagbyimages.blob.core.windows.net:443/",
"script": "hello.sh"
}
]
Expand Down
7 changes: 6 additions & 1 deletion pkg/acsengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,12 @@ func internalGetPoolLinkedTemplateText(extTargetVMNamePrefix, orchestratorType,
dta = strings.Replace(dta, "EXTENSION_PARAMETERS_REPLACE", extensionsParameterReference, -1)
dta = strings.Replace(dta, "EXTENSION_URL_REPLACE", extensionProfile.RootURL, -1)
dta = strings.Replace(dta, "EXTENSION_TARGET_VM_NAME_PREFIX", extTargetVMNamePrefix, -1)
dta = strings.Replace(dta, "EXTENSION_LOOP_COUNT", loopCount, -1)
if _, err := strconv.Atoi(loopCount); err == nil {
dta = strings.Replace(dta, "\"EXTENSION_LOOP_COUNT\"", loopCount, -1)
} else {
dta = strings.Replace(dta, "EXTENSION_LOOP_COUNT", loopCount, -1)
}

dta = strings.Replace(dta, "EXTENSION_LOOP_OFFSET", loopOffset, -1)
return dta, nil
}
Expand Down

0 comments on commit 83e4fdb

Please sign in to comment.