Skip to content

Commit 9cb38f8

Browse files
author
cguertuerk
committed
Fixes an issue for pathname
1 parent 0f9ec45 commit 9cb38f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getCloudformation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const generateCloudformationByParameters = (stackName,flags) => {
109109
}
110110

111111
stackBody.Parameters.P = {Type: 'String'};
112-
stackParameters.P = parsedUrl.pathname + parsedUrl.search;
112+
stackParameters.P = parsedUrl.pathname + (parsedUrl.search ? parsedUrl.search : "");
113113
healthCheckConfig.ResourcePath = {Ref: 'P'};
114114

115115
for (let i = 1; i <= healthCheckCount; i++) {

0 commit comments

Comments
 (0)