Skip to content

Instantly share code, notes, and snippets.

@aphor
Created July 15, 2016 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aphor/8488098db3d1b0dbfeaa4bc435b9eb6c to your computer and use it in GitHub Desktop.
Save aphor/8488098db3d1b0dbfeaa4bc435b9eb6c to your computer and use it in GitHub Desktop.
/dev/ebsvol0:
file.exists:
- onfail:
- cmd: create_attach_ebs_data_vol
create_attach_ebs_data_vol:
cmd.call:
- name: cloud.action
- func: create_attach_volumes
- instance: {{ monsoon.master }}
- zone: {{ monsoon.az }}
- volumes:
-
name: {{ monsoon.master }}_data_vol
size: 20
device: /dev/ebsvol0
- unless:
- file: /dev/ebsvol0
@aphor
Copy link
Author

aphor commented Jul 15, 2016

Results in (no LazyLoader str-->func?) :(

`local:

      ID: create_attach_ebs_data_vol
Function: cmd.call
    Name: cloud.action
  Result: False
 Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/usr/lib/python2.7/site-packages/salt/state.py", line 1723, in call
              **cdata['kwargs'])
            File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1650, in wrapper
              return f(*args, **kwargs)
            File "/usr/lib/python2.7/site-packages/salt/states/cmd.py", line 1183, in call
              result = func(*args, **kws)
          TypeError: 'str' object is not callable
 Started: 19:08:41.423501
Duration: 13.999 ms
 Changes:   

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment