Skip to content

Commit

Permalink
fix(provider/gce): Distinguish instance id from gceId. (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Duftler authored and jtk54 committed Nov 6, 2017
1 parent 7f332b2 commit 0758444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import groovy.transform.EqualsAndHashCode
class GoogleInstance {

String name
String id
String gceId
String instanceType
String cpuPlatform
Long launchTime
Expand Down Expand Up @@ -76,7 +76,7 @@ class GoogleInstance {
final String cloudProvider = GoogleCloudProvider.ID

String name = GoogleInstance.this.name
String id = GoogleInstance.this.id
String gceId = GoogleInstance.this.gceId
String instanceId = GoogleInstance.this.name
String instanceType = GoogleInstance.this.instanceType
String cpuPlatform = GoogleInstance.this.cpuPlatform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class GoogleInstanceCachingAgent extends AbstractGoogleCachingAgent {
String instanceName = Utils.getLocalName(instance.name)
def googleInstance = new GoogleInstance(
name: instanceName,
id: instance.id,
gceId: instance.id,
instanceType: Utils.getLocalName(instance.machineType),
cpuPlatform: instance.cpuPlatform,
launchTime: instanceTimestamp,
Expand Down

0 comments on commit 0758444

Please sign in to comment.