Closed maiyuki closed 5 years ago
Quick question: if I do phabfive passphrase K1
is the exit status non-zero? Verify with echo $?
. It is preferable that we exit with non-zero when the Conduit API access is not granted.
Quick question: if I do
phabfive passphrase K1
is the exit status non-zero? Verify withecho $?
. It is preferable that we exit with non-zero when the Conduit API access is not granted.
~/dynamist/phabfive(feature/passphrase-conduit-access*) » phabfive passphrase K1
This private material for this credential is not accessible via API calls.
~/dynamist/phabfive(feature/passphrase-conduit-access*) » echo $?
1
@holmboe exit status 1
@holmboe exit status 1
Nice! :+1:
Before:
phabfive passphrase K1
phabfive passphrase K2
After:
phabfive passphrase K1
phabfive passphrase K2
When using print function to check what
self.phab.passphrase.query
returns you can see that the key valuematerial
returns a dict with different key values. In this case it returns key valuepassword
when you can access the secret via API, ornoAPIAccess
when you cannot access the secret via API. From this the we can catchnoAPIAccess
and raise is as anException
.phabfive passphrase K1
(with print function)phabfive passphrase K2
(with print function)