@mikarinneoracle/oci-cdk-code-only-preview 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/deploy-code-only.js +5 -2
- package/package.json +1 -1
package/bin/deploy-code-only.js
CHANGED
|
@@ -157,7 +157,10 @@ function main() {
|
|
|
157
157
|
];
|
|
158
158
|
if (functionId) {
|
|
159
159
|
console.log(`Updating code-only function ${metadata.functionName} in ${metadata.appName}...`);
|
|
160
|
-
|
|
160
|
+
// OCI Preview CLI may print an unsuccessful waiter notice and the entire
|
|
161
|
+
// function payload even though the archive update was accepted. Keep its
|
|
162
|
+
// output captured so the normal deploy output remains concise.
|
|
163
|
+
runOci(['fn', 'function', 'update', 'archive-function', '--function-id', functionId, '--runtime-config', 'FUNCTION_UPDATE', '--force', ...commonArgs]);
|
|
161
164
|
console.log(`Updated code-only function: ${functionId}`);
|
|
162
165
|
} else {
|
|
163
166
|
console.log(`Creating code-only function ${metadata.functionName} in ${metadata.appName}...`);
|
|
@@ -166,7 +169,7 @@ function main() {
|
|
|
166
169
|
'--application-id', applicationId,
|
|
167
170
|
'--display-name', metadata.functionName,
|
|
168
171
|
...commonArgs,
|
|
169
|
-
]
|
|
172
|
+
]);
|
|
170
173
|
console.log('Created code-only function.');
|
|
171
174
|
}
|
|
172
175
|
} finally {
|