Skip to content

As skip_cert_check is optional, it must return 'false' instead of empty#2

Merged
patrickcrocker merged 1 commit intonulldriver:masterfrom
ntdt:master
Aug 21, 2017
Merged

As skip_cert_check is optional, it must return 'false' instead of empty#2
patrickcrocker merged 1 commit intonulldriver:masterfrom
ntdt:master

Conversation

@ntdt
Copy link
Contributor

@ntdt ntdt commented Jul 24, 2017

Considering this test

echo '{"source":{}}' |jq -r '.source.skip_cert_check //false'
false

instead of

echo '{"source":{}}' |jq -r '.source.skip_cert_check //empty'

leads to this error in cf_login function

/opt/resource/cf-functions.sh: line 6: $4: unbound variable

Considering this test
```
echo '{"source":{}}' |jq -r '.source.skip_cert_check //false'
false
```
instead of
```
echo '{"source":{}}' |jq -r '.source.skip_cert_check //empty'
```
leads to this error in cf_login function
```
/opt/resource/cf-functions.sh: line 6: $4: unbound variable
```
@patrickcrocker patrickcrocker merged commit e5910f1 into nulldriver:master Aug 21, 2017
@patrickcrocker
Copy link
Member

Good catch, thanks!

patrickcrocker pushed a commit that referenced this pull request Mar 20, 2019
Add ability to create and delete service keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants