~fwereade/pyjuju/late-command-change

« back to all changes in this revision

Viewing changes to ensemble/providers/ec2/utils.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:
48
48
 
49
49
 
50
50
def get_image_id(config, constraints):
 
51
    """Get an EC2 image ID.
 
52
 
 
53
    :param dict config: environment configuration (which can override
 
54
        `constraints`)
 
55
    :param dict constraints: specific requirements for requested machine; TODO
 
56
        improve documentation once requirements firm up.
 
57
 
 
58
    :return: An AMI ID
 
59
    :rtype: :class:`twisted.internet.defer.Deferred`
 
60
    """
51
61
    image_id = config.get("default-image-id", None)
52
62
    if image_id:
53
63
        return succeed(image_id)