Skip to content
Snippets Groups Projects
Commit eb5d8d18 authored by Alena Petraki's avatar Alena Petraki :nail_care_tone1: Committed by Alex Petraky
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent e405b452
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ func IsSpaceAvailable(ctx context.Context, spcs Spaces, spaceId string) error { ...@@ -57,7 +57,7 @@ func IsSpaceAvailable(ctx context.Context, spcs Spaces, spaceId string) error {
return errors.Wrap(err, "space not available") return errors.Wrap(err, "space not available")
} }
if spc.StateInfo.State != StateReady { if spc.StateInfo != nil && spc.StateInfo.State != StateReady {
return errors.New("space not available") return errors.New("space not available")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment