You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to 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.
11 years ago
cloud import novaclient.exceptions for cs.images.find 11 years ago
commands Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
database Fix postgresql_user documentation render 11 years ago
files Fixes #5109 synchronize module ssh port 11 years ago
internal Addresses #5023 Fix import comments 11 years ago
inventory Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 11 years ago
messaging Addresses #5023 Fix import comments 11 years ago
monitoring Addresses #5023 Fix import comments 11 years ago
net_infrastructure Addresses #5023 Fix import comments 11 years ago
network Addresses #5023 Fix import comments 11 years ago
notification Addresses #5023 Fix import comments 11 years ago
packaging Merge pull request #4872 from timurbatyrshin/4869-old-python-apt-fix 11 years ago
source_control Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
system Merge pull request #4886 from sergeyhush/devel 11 years ago
utilities Addresses #5023 Fix import comments 11 years ago
web_infrastructure Addresses #5023 Fix import comments 11 years ago