No description
Find a file
Troy C c2d34efd21 import novaclient.exceptions for cs.images.find
cs.images.find(human_id= throws novaclient.exceptions.NotFound,
resulting in the try/except block with
image = cs.images.find(name=image)  being skipped. catching
novaclient.exception.NotFound allows images to be specified with the
human readable name.

Example:
  tasks:
    - name: Server build request
      local_action:
        module: rax
        region: DFW
        image: Ubuntu 12.04 LTS (Precise Pangolin)

Also, the import is placed after try: import pyrax, because pyrax
imports novaclient and should fail if novaclient is missing.
2013-12-13 16:27:21 -06:00
cloud import novaclient.exceptions for cs.images.find 2013-12-13 16:27:21 -06:00
commands Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
database Fix postgresql_user documentation render 2013-12-05 16:57:56 +00:00
files Fixes #5109 synchronize module ssh port 2013-12-03 14:48:20 -05:00
internal Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
inventory Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 2013-10-11 16:37:10 -04:00
messaging Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
monitoring Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
net_infrastructure Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
network Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
notification Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
packaging Merge pull request #4872 from timurbatyrshin/4869-old-python-apt-fix 2013-12-13 10:43:47 -08:00
source_control Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
system Merge pull request #4886 from sergeyhush/devel 2013-12-13 11:25:45 -08:00
utilities Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
web_infrastructure Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00