File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
helpers/azureCLIScriptHelpers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,8 @@ const applyToInstanceHelper = (_) => ({
65
65
case TTL_ON :
66
66
return _ . parseInt ( containerData . TTLseconds ) || - 1 ;
67
67
case TTL_OFF :
68
- return ''
69
68
default :
70
- return - 1 ;
69
+ return 0 ;
71
70
}
72
71
} ,
73
72
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ const getAzureCliContainerCreateStatement =
64
64
JSON . stringify ( getIndexPolicyScript ( _ ) ( containerData ) ) ,
65
65
) } `;
66
66
const uniqueKeysPolicyParam = getUniqueKeysPolicyParam ( containerData [ 0 ] , escapeAndWrapInQuotes ) ;
67
- const ttlParam = `--ttl ${ helper . getTTL ( containerData [ 0 ] ) } ` ;
67
+ const ttl = helper . getTTL ( containerData [ 0 ] ) ;
68
+ const ttlParam = ttl !== 0 ? `--ttl ${ helper . getTTL ( containerData [ 0 ] ) } ` : '' ;
68
69
69
70
const cliStatement = `${ CLI } ${ CONTAINER } ${ CREATE } ` ;
70
71
const requiredParams = [
You can’t perform that action at this time.
0 commit comments