Skip to content

Commit

Permalink
Derive PCloud URL from Platform Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Aug 14, 2023
1 parent b79aa5a commit 97bac86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/logon.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ var logonCmd = &cobra.Command{
log.Fatalf("Failed to get platform discovery. %s", err)
}
c.TenantID, err = util.GetSubDomain(platformDiscovery.IdentityUserPortal.API)
c.BaseURL, err = util.GetSubDomain(platformDiscovery.Pcloud.API)
c.BaseURL = platformDiscovery.Pcloud.API
if err != nil {
log.Fatalf("Failed to get tenant ID. %s", err)
}
Expand Down

0 comments on commit 97bac86

Please sign in to comment.