~hazmat/pyjuju/peers-from-hurd

« back to all changes in this revision

Viewing changes to juju/providers/orchestra/machine.py

  • Committer: Kapil Thangavelu
  • Author(s): Kapil Thangavelu
  • Date: 2013-02-01 18:24:47 UTC
  • mfrom: (611.2.1 drop-orchestra)
  • Revision ID: kapil.foss@gmail.com-20130201182447-a3qsgpgwqyeudikc
Drop orchestra provider support

The orchestra provider is dead upstream, and represents
a significant support burden on the code base. Given
hardware deployments are directed towards MaaS and no
current users, its better to drop this now.

R=
CC=
https://codereview.appspot.com/7225084

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from juju.machine import ProviderMachine
2
 
 
3
 
 
4
 
class OrchestraMachine(ProviderMachine):
5
 
    """Orchestra-specific provider machine implementation"""
6
 
 
7
 
 
8
 
def machine_from_dict(d):
9
 
    """Convert a `dict` into a :class:`OrchestraMachine`.
10
 
 
11
 
    :param dict d: a dict as returned (in a list) by
12
 
        :meth:`juju.providers.orchestra.cobbler.CobblerClient.get_systems`
13
 
 
14
 
    :rtype: :class:`OrchestraMachine`
15
 
    """
16
 
    state = "pending" if d["netboot_enabled"] else "provisioned"
17
 
    return OrchestraMachine(d["uid"], d["name"], d["name"], state)