mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
update cassandra module to use config.option
This commit is contained in:
parent
3c322b56cb
commit
9f1ae61b52
@ -47,9 +47,9 @@ def __virtual__():
|
||||
return False
|
||||
|
||||
try:
|
||||
nt = __pillar__['cassandra.nodetool']
|
||||
host = __pillar__['cassandra.host']
|
||||
thrift_port = str(__pillar__['cassandra.thrift_port'])
|
||||
nt = __salt__['config.option']('cassandra.nodetool')
|
||||
host = __salt__['config.option']('cassandra.host')
|
||||
thrift_port = str(__salt__['config.option']('cassandra.thrift_port'))
|
||||
except ImportError:
|
||||
#log.info('Module failed to load: pycassa is not installed')
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user