Rename arg

This commit is contained in:
Gennady Lipenkov 2020-04-27 02:37:10 +03:00
parent d095e153ba
commit aa595fa1aa
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -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 {