Exemple #1
0
def main():
    loader = Loader("qemu:///system", MAAS_OAUTH,
                    "http://localhost:8000/MAAS/api/1.0/")

    loader.get_instances(25, {
        'architecture': 'amd64',
        'prefix': "juju-",
        'memory': 512,
        'cpus': 2,
        'disk': 1
    }, on_failure=on_failure)