~andreserl/pyjuju/cloud-init-orchestra-lp850260

« back to all changes in this revision

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

  • Committer: William Reade
  • Date: 2011-09-13 12:54:27 UTC
  • mfrom: (335.4.8 fix-docstrings)
  • Revision ID: fwereade@gmail.com-20110913125427-mc0j7uv61zg4fnba
module documentation is now built from docstrings; ensemble.providers docstrings should now be consistent [f=831805][r=niemeyer,jimbaker]

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
 
8
8
def machine_from_dict(d):
9
 
    """Convert a `dict` into an `OrchestraMachine`.
10
 
 
11
 
    Expects dicts as returned by `CobblerClient.get_system[s]`
 
9
    """Convert a `dict` into a :class:`OrchestraMachine`.
 
10
 
 
11
    :param dict d: a dict as returned by
 
12
        :meth:`ensemble.providers.orchestra.cobbler.CobblerClient.get_system`
 
13
        or
 
14
        :meth:`ensemble.providers.orchestra.cobbler.CobblerClient.get_systems`
 
15
 
 
16
    :rtype: :class:`OrchestraMachine`
12
17
    """
13
18
    return OrchestraMachine(d["uid"], d["name"], d["name"])