~openstack-ubuntu-testing/charms/precise/keystone/grizzly

« back to all changes in this revision

Viewing changes to hooks/utils.py

  • Committer: Adam Gandelman
  • Date: 2012-05-28 18:36:18 UTC
  • Revision ID: adamg@canonical.com-20120528183618-ngjotx2qk7og67dm
Write correct deb url

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        execute("wget -O /root/qa-lab-repo.key http://192.168.20.1/ubuntu/repo.key", die=True, echo=True)
62
62
        execute("apt-key add /root/qa-lab-repo.key", die=True, echo=True)
63
63
        f = open("/etc/apt/sources.list.d/qa_lab-%s.list" % repo, 'w')
64
 
        f.write('deb [arch=amd64] http://192.168.20.1/ubuntu precise main')
 
64
        f.write('deb [arch=amd64] http://192.168.20.1/ubuntu %s main' % repo)
65
65
        f.close()
66
66
        return 0
67
67
    elif rel == "trunk":