Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
2016-08-03 11:01:37,161 - cct - DEBUG - processing change [{'changes': [{'base.Chmod': [{'path': '/opt/amq', 'mode': 493}, {'path': '/opt/amq/bin/activemq', 'mode': 493}]}, {'base.Chown': [{'owner': 'jboss', 'path': '/opt/amq', 'group': 'jboss', 'recursive': True}]}], 'description': 'say hello', 'name': 'base'}]
2016-08-03 11:01:37,162 - cct - INFO - executing change base
2016-08-03 11:01:37,162 - cct - DEBUG - path
2016-08-03 11:01:37,162 - cct - DEBUG - mode
Traceback (most recent call last):
File "/usr/bin/cct", line 9, in <module>
load_entry_point('cct==0.0.1.dev0', 'console_scripts', 'cct')()
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 117, in run
cli.run()
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 105, in run
self.process_changes(changes)
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 71, in process_changes
self.process_file(change)
File "/usr/lib/python2.7/site-packages/cct/cli/main.py", line 61, in process_file
cp.process()
File "/usr/lib/python2.7/site-packages/cct/change_processor.py", line 24, in process
self._process_change(change)
File "/usr/lib/python2.7/site-packages/cct/change_processor.py", line 66, in _process_change
operation = Operation(name, shlex.split(args))
File "/usr/lib64/python2.7/shlex.py", line 279, in split
return list(lex)
File "/usr/lib64/python2.7/shlex.py", line 269, in next
token = self.get_token()
File "/usr/lib64/python2.7/shlex.py", line 96, in get_token
raw = self.read_token()
File "/usr/lib64/python2.7/shlex.py", line 124, in read_token
nextchar = self.instream.read(1)
AttributeError: 'int' object has no attribute 'read'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment