update cassandra module to use config.option

This commit is contained in:
Thomas S Hatch 2012-11-12 16:46:37 -07:00
parent 3c322b56cb
commit 9f1ae61b52

View File

@ -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