~maas-committers/maas/trunk

« back to all changes in this revision

Viewing changes to src/metadataserver/api.py

  • Committer: Tarmac
  • Author(s): Raphael Badin
  • Date: 2012-11-28 15:43:14 UTC
  • mfrom: (1382.1.4 enlistment-user-data)
  • Revision ID: tarmac-20121128154314-681jf0hnz4y9ux1c
[r=allenap][bug=1081701][author=rvb] Fix the enlistment user data: use the maas_url stored on the related nodegroup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
 
378
378
    def read(self, request, version):
379
379
        check_version(version)
380
 
        return HttpResponse(get_enlist_userdata(), mimetype="text/plain")
 
380
        nodegroup = find_nodegroup(request)
 
381
        return HttpResponse(
 
382
            get_enlist_userdata(nodegroup=nodegroup), mimetype="text/plain")
381
383
 
382
384
 
383
385
class EnlistVersionIndexHandler(OperationsHandler):