Skip to content

Commit

Permalink
🐛 fix gcp init functions panic
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Mar 11, 2024
1 parent beb40f3 commit 54c7d8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/gcp/resources/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ func initGcpProjectBigqueryServiceDataset(runtime *plugin.Runtime, args map[stri
args["id"] = llx.StringData(ids.name)
args["location"] = llx.StringData(ids.region)
args["projectId"] = llx.StringData(ids.project)
} else {
return nil, nil, errors.New("no asset identifier found")
}
}

Expand Down
2 changes: 2 additions & 0 deletions providers/gcp/resources/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,8 @@ func initGcpProjectComputeServiceFirewall(runtime *plugin.Runtime, args map[stri
if ids := getAssetIdentifier(runtime); ids != nil {
args["name"] = llx.StringData(ids.name)
args["projectId"] = llx.StringData(ids.project)
} else {
return nil, nil, errors.New("no asset identifier found")
}
}

Expand Down
3 changes: 3 additions & 0 deletions providers/gcp/resources/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package resources

import (
"context"
"errors"
"fmt"
"strings"

Expand Down Expand Up @@ -62,6 +63,8 @@ func initGcpProjectGkeServiceCluster(runtime *plugin.Runtime, args map[string]*l
args["name"] = llx.StringData(ids.name)
args["location"] = llx.StringData(ids.region)
args["projectId"] = llx.StringData(ids.project)
} else {
return nil, nil, errors.New("no asset identifier found")
}
}

Expand Down
3 changes: 3 additions & 0 deletions providers/gcp/resources/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package resources

import (
"context"
"errors"
"fmt"
"strconv"

Expand Down Expand Up @@ -143,6 +144,8 @@ func initGcpProjectStorageServiceBucket(runtime *plugin.Runtime, args map[string
args["name"] = llx.StringData(ids.name)
args["projectId"] = llx.StringData(ids.project)
args["location"] = llx.StringData(ids.region)
} else {
return nil, nil, errors.New("no asset identifier found")
}
}

Expand Down

0 comments on commit 54c7d8f

Please sign in to comment.