Skip to content

Commit f508ea3

Browse files
committed
Change description for default project id options
1 parent bfa4713 commit f508ea3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/cloud/cloud.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ type client struct {
108108
func New(config *Config) Interface {
109109
csClient := cloudstack.NewAsyncClient(config.APIURL, config.APIKey, config.SecretKey, config.VerifySSL)
110110

111-
// Set the project id to every request.
112-
// This is possible because we just could work in one project with the previous implementation.
111+
// Set the project id to every request that support options.
112+
// This is possible because we also could work in one project only with the previous implementation.
113113
if config.ProjectID != "" {
114114
csClient.DefaultOptions(cloudstack.WithProject(config.ProjectID))
115115
klog.Background().V(2).Info("Set projectID to cloud connector", "projectID", config.ProjectID)

pkg/cloud/snapshots.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (c *client) ListSnapshots(ctx context.Context, volumeID, snapshotID string)
119119
p.SetVolumeid(volumeID)
120120
}
121121

122-
// There is no list function that uses the client default project id
122+
// There is no list function that uses the client default project id option
123123
if c.projectID != "" {
124124
p.SetProjectid(c.projectID)
125125
}

pkg/cloud/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (c *client) CreateVolume(ctx context.Context, diskOfferingID, zoneID, name
8282
p.SetZoneid(zoneID)
8383
p.SetName(name)
8484
p.SetSize(sizeInGB)
85-
// There is no create function that uses the client default project id
85+
// There is no create function that uses the client default project id option
8686
if c.projectID != "" {
8787
p.SetProjectid(c.projectID)
8888
}

0 commit comments

Comments
 (0)