~vds/juju-core/add-owner-to-service

« back to all changes in this revision

Viewing changes to state/apiserver/uniter/uniter.go

  • Committer: Matthew Williams
  • Date: 2013-10-03 15:10:48 UTC
  • Revision ID: mattyw@me.com-20131003151048-r2pws7r13e7iubnb
making sure the owner-get tool is getting the user from the api

Show diffs side-by-side

added added

removed removed

Lines of Context:
967
967
        }, nil
968
968
}
969
969
 
970
 
func (u *UniterAPI) GetOwnerTag(tag string) (string, error) {
971
 
        service, err := u.getService(tag)
 
970
func (u *UniterAPI) GetOwnerTag(args params.Entities) (params.StringResult, error) {
 
971
 
 
972
        nothing := params.StringResult{}
 
973
        service, err := u.getService(args.Entities[0].Tag)
972
974
        if err != nil {
973
 
                return "", err
 
975
                return nothing, err
974
976
        }
975
977
 
976
 
        return service.GetOwnerTag(), nil
 
978
        return params.StringResult{
 
979
                Result: service.GetOwnerTag(),
 
980
        }, nil
977
981
}