Skip to content

Commit

Permalink
Issue 148 - code fix after merge. (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sindica authored Aug 26, 2022
1 parent 31a7d40 commit a0e1356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource-management/pkg/service-api/endpoints/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (i *Installer) NodeHandler(resp http.ResponseWriter, req *http.Request) {
resp.Header().Set("Content-Type", "text/plain")

region := location.GetRegionFromRegionName(regionName)
resourceParition := location.GetPartitionFromPartitionName(rpName)
if region == location.Region(-1) || resourceParition == location.ResourcePartition(-1) {
resourceParition, err := location.GetPartitionFromPartitionName(rpName)
if err != nil {
resp.WriteHeader(http.StatusBadRequest)
return
}
Expand Down

0 comments on commit a0e1356

Please sign in to comment.