~ubuntu-branches/ubuntu/quantal/maas/quantal-proposed

« back to all changes in this revision

Viewing changes to src/maas/__init__.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez, Andres Rodriguez, Gavin Panella, Raphael Badin
  • Date: 2012-10-16 10:31:37 UTC
  • mfrom: (1.2.1) (20.1.8 quantal)
  • Revision ID: package-import@ubuntu.com-20121016103137-f6h9izlca23r2oen
Tags: 0.1+bzr1269+dfsg-0ubuntu1
* New upstream bugfix release
  - Fixes commissioning failing to set memory attribute. (LP: #1064638)
  - Fixes node listing by adding pagination (LP: #1064672)
  - Changes default bind rndc key which breaks initscripts (LP: #1066938)
  - Fixes invalid DNS config once node is enlisted (LP: #1066958)
  - Reference documentation link to correct URL (LP: #1067261)

[ Andres Rodriguez ]
* debian/rules: Change upstream branch.

[ Gavin Panella ]
* debian/maas-dns.postinst: Remove MAAS-related include lines from named's
  config before adding a new one (LP: #1066929)

[ Raphael Badin ]
* debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
  rabbitmq queue. (LP: #1067929)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
def find_settings(whence):
22
22
    """Return settings from `whence`, which is assumed to be a module."""
 
23
    # XXX 2012-10-11 JeroenVermeulen, bug=1065456: We thought this would be
 
24
    # a good shared location for this helper, but we can't get at it during
 
25
    # cluster installation.  So it's currently duplicated.  Put it in a
 
26
    # properly shared location.
23
27
    return {
24
28
        name: value
25
29
        for name, value in vars(whence).items()
29
33
 
30
34
def import_settings(whence):
31
35
    """Import settings from `whence` into the caller's global scope."""
 
36
    # XXX 2012-10-11 JeroenVermeulen, bug=1065456: We thought this would be
 
37
    # a good shared location for this helper, but we can't get at it during
 
38
    # cluster installation.  So it's currently duplicated.  Put it in a
 
39
    # properly shared location.
32
40
    source = find_settings(whence)
33
41
    target = sys._getframe(1).f_globals
34
42
    target.update(source)