Modify ↓
Ticket #1065 (closed defect: fixed)
TCheetah = argument 1 must be string or read-only character buffer, not None
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawm7-QeHxXGyyMwjN6_wFPC-gGTvrxu0YaE | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | TCheetah | Cc: | [email protected]…, [email protected]… |
Description
Installing ConfigFile /etc/snmp/snmpd.conf Unexpected failure of install method for entry type Path Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/__init__.py", line 150, in Install states[entry] = func(entry) File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 735, in InstallPath return ret(entry) File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 715, in Installfile return ret(entry) File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/POSIX.py", line 674, in InstallConfigFile newfile.write(filedata) TypeError: argument 1 must be string or read-only character buffer, not None
The file TCheetah/etc/snmp/snmpd.conf/template is empty:
nagios# cat TCheetah/etc/snmp/snmpd.conf/template nagios#
Attachments
Change History
comment:1 Changed 11 years ago by solj
- Cc [email protected]… added
- Milestone set to Bcfg2 1.2.1 Release (Bugfix)
comment:2 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawm7-QeHxXGyyMwjN6_wFPC-gGTvrxu0YaE
I use version 1.1.3 (client and server) from upstream.
comment:3 Changed 11 years ago by solj
- Status changed from new to closed
- Resolution set to fixed
I have verified that this is, in fact, fixed in the latest code and will work in 1.2.0. Also, on my end, I get an additional warning from the Cheetah code:
/usr/lib64/python2.7/site-packages/Cheetah/Compiler.py:1555: UserWarning: You supplied an empty string for the source!", ) warnings.warn("You supplied an empty string for the source!", )
Note: See
TracTickets for help on using
tickets.
What version are you using? I believe this is fixed in 3c290811195e23c9a948ac15c304b34ea16fbe9b.