mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 23:04:53 -04:00
cli: fix missing safety check in ShowIAM (#2165)
* Add missing safety check to ShowIAM * someErr->assert.AnError --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
c9cae643e2
commit
23394ea2e2
2 changed files with 218 additions and 22 deletions
|
@ -87,6 +87,9 @@ func (c *Client) ShowIAM(ctx context.Context, provider cloudprovider.Provider) (
|
|||
if err != nil {
|
||||
return IAMOutput{}, err
|
||||
}
|
||||
if tfState == nil || tfState.Values == nil {
|
||||
return IAMOutput{}, errors.New("terraform show: no values returned")
|
||||
}
|
||||
|
||||
switch provider {
|
||||
case cloudprovider.GCP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue