This repository was archived by the owner on Dec 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,19 @@ const localWskProps = () => {
18
18
exports . entities = [ "action" , "trigger" , "rule" , "package" ]
19
19
20
20
exports . cleanAll = auth => {
21
- const ow = require ( 'openwhisk' ) ( {
22
- apihost : process . env . __OW_API_HOST || process . env . API_HOST || process . env . APIHOST || localWskProps ( ) . APIHOST || 'openwhisk.ng.bluemix.net' ,
23
- api_key : auth || process . env . __OW_API_KEY || process . env . AUTH || localWskProps ( ) . AUTH ,
24
- ignore_certs : process . env . IGNORE_CERTS || process . env . INSECURE_SSL || localWskProps ( ) . INSECURE_SSL || localWskProps ( ) . APIHOST . indexOf ( 'localhost' ) >= 0 || localWskProps ( ) . APIHOST . startsWith ( '192.' ) || localWskProps ( ) . APIHOST . startsWith ( '172.' ) || localWskProps ( ) . APIHOST . startsWith ( 'https://192.' ) || localWskProps ( ) . APIHOST . startsWith ( 'https://172.' )
25
- } )
21
+ const apihost = process . env . __OW_API_HOST || process . env . API_HOST || process . env . APIHOST || localWskProps ( ) . APIHOST || 'openwhisk.ng.bluemix.net' ,
22
+ opts = {
23
+ apihost,
24
+ api_key : auth || process . env . __OW_API_KEY || process . env . AUTH || localWskProps ( ) . AUTH ,
25
+ ignore_certs : process . env . IGNORE_CERTS || process . env . INSECURE_SSL || localWskProps ( ) . INSECURE_SSL
26
+ || apihost . indexOf ( 'localhost' ) >= 0
27
+ || apihost . startsWith ( '192.' )
28
+ || apihost . startsWith ( '172.' )
29
+ || apihost . startsWith ( 'https://192.' )
30
+ || apihost . startsWith ( 'https://172.' )
31
+ }
32
+
33
+ const ow = require ( 'openwhisk' ) ( opts )
26
34
27
35
/** log a message, then call the given function */
28
36
const logThen = f => msg => {
You can’t perform that action at this time.
0 commit comments