Rename arg
This commit is contained in:
parent
d095e153ba
commit
aa595fa1aa
|
@ -16,5 +16,5 @@ type Driver interface {
|
|||
DeleteInstance(ctx context.Context, instanceID string) error
|
||||
DeleteSubnet(ctx context.Context, subnetID string) error
|
||||
DeleteNetwork(ctx context.Context, networkID string) error
|
||||
GetInstanceMetadata(ctx context.Context, name string, key string) (string, error)
|
||||
GetInstanceMetadata(ctx context.Context, instanceID string, key string) (string, error)
|
||||
}
|
||||
|
|
|
@ -234,9 +234,9 @@ func (d *driverYC) DeleteDisk(ctx context.Context, diskID string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (d *driverYC) GetInstanceMetadata(ctx context.Context, id string, key string) (string, error) {
|
||||
func (d *driverYC) GetInstanceMetadata(ctx context.Context, instanceID string, key string) (string, error) {
|
||||
instance, err := d.sdk.Compute().Instance().Get(ctx, &compute.GetInstanceRequest{
|
||||
InstanceId: id,
|
||||
InstanceId: instanceID,
|
||||
View: compute.InstanceView_FULL,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue