Commit 20e55806 authored by Madhusudan.C.S's avatar Madhusudan.C.S

Address review comments.

parent e0ca8abb
...@@ -55,7 +55,7 @@ type ResourceRecordSets interface { ...@@ -55,7 +55,7 @@ type ResourceRecordSets interface {
// Get returns the ResourceRecordSet list with the name in the Zone. // Get returns the ResourceRecordSet list with the name in the Zone.
// This is a list because there might be multiple records of different // This is a list because there might be multiple records of different
// types for a given name. If the named resource record sets do not // types for a given name. If the named resource record sets do not
// exist, but no error occurred, the returned set will be an empty set // exist, but no error occurred, the returned record set will be empty
// and error will be nil. // and error will be nil.
Get(name string) ([]ResourceRecordSet, error) Get(name string) ([]ResourceRecordSet, error)
// New allocates a new ResourceRecordSet, which can then be passed to ResourceRecordChangeset Add() or Remove() // New allocates a new ResourceRecordSet, which can then be passed to ResourceRecordChangeset Add() or Remove()
......
...@@ -40,7 +40,7 @@ func (s ResourceRecordSetsService) managedZone(project, managedZone string) (*Ma ...@@ -40,7 +40,7 @@ func (s ResourceRecordSetsService) managedZone(project, managedZone string) (*Ma
if z == nil { if z == nil {
return nil, fmt.Errorf("Zone %s not found in project %s", managedZone, project) return nil, fmt.Errorf("Zone %s not found in project %s", managedZone, project)
} }
return s.Service.ManagedZones_.Impl[project][managedZone].(*ManagedZone), nil return z.(*ManagedZone), nil
} }
func (s ResourceRecordSetsService) List(project string, managedZone string) interfaces.ResourceRecordSetsListCall { func (s ResourceRecordSetsService) List(project string, managedZone string) interfaces.ResourceRecordSetsListCall {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment