Skip to content

Commit

Permalink
Update Azure instance id: cloud_service_name&vm_name.
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelHu committed Jan 26, 2015
1 parent 8d1a0da commit a1718e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/azure_file_metadata_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (ms azureFileMetadataService) GetInstanceID() (string, error) {
vm_name := match[1]
ms.logger.Debug(ms.logTag, "Read instance name %#v", vm_name)

return service_name + "/" + vm_name, nil
return service_name + "&" + vm_name, nil
}

func (ms azureFileMetadataService) GetServerName() (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/azure_file_metadata_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var _ = Describe("AzureFileMetadataService", func() {
It("returns instance id", func() {
instanceID, err := metadataService.GetInstanceID()
Expect(err).NotTo(HaveOccurred())
Expect(instanceID).To(Equal("fake-service-id/fake-instance-id"))
Expect(instanceID).To(Equal("fake-service-id&fake-instance-id"))
})
})

Expand Down

0 comments on commit a1718e3

Please sign in to comment.