Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (127 - 129 of 894)

Ticket Owner Reporter Resolution Summary
#652 desai Torsten Rehn <[email protected]…> fixed Missing Python <2.6 support in Proxy.py
Description
  File "/usr/lib/python2.5/site-packages/Bcfg2/Proxy.py", line 63, in __init__
    httplib.HTTPConnection.__init__(self, host, port, strict, timeout)
TypeError: __init__() takes at most 4 arguments (5 given)

The timeout argument was added in Python 2.6

#653 desai Torsten Rehn <[email protected]…> fixed mandatory SQLAlchemy import in Snapshots/__init__.py
Description
bcfg2 etc # bcfg2-admin --help
Usage: bcfg2-admin [OPTIONS] MODE [ARGS]

Available options are:
   -C <configfile>   Set alternate bcfg2.conf location

Available modes are:
   client            Create or delete client entries
   compare           Determine differences between files or directories of client specification instances
   fingerprint       Print the server certificate fingerprint
   init              Interactively initialize a new repository
   minestruct        Extract extra entry lists from statistics
   pull              Integrate configuration information from clients into the server repository
   query             Query clients
Traceback (most recent call last):
  File "/usr/local/bin/bcfg2-admin", line 53, in <module>
    (mode, mode_import(mode).__shorthelp__)))
  File "/usr/local/bin/bcfg2-admin", line 19, in mode_import
    (modname)).Server.Admin, modname)
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Admin/Snapshots.py", line 9, in <module>
    import Bcfg2.Server.Snapshots
  File "/usr/lib/python2.5/site-packages/Bcfg2/Server/Snapshots/__init__.py", line 3, in <module>
    import sqlalchemy, sqlalchemy.orm, ConfigParser
ImportError: No module named sqlalchemy

Please don't import it in init like this. If I don't care about Snapshots or any SQL stuff, I shouldn't need sqlalchemy.

#657 desai Torsten Rehn <[email protected]…> fixed prune attribute unable to remove directories
Description

When using the prune attribute of Directory, it may try to os.unlink a directory (see http://trac.mcs.anl.gov/projects/bcfg2/browser/trunk/bcfg2/src/lib/Client/Tools/POSIX.py#L284) and fails. The attached patch shows a more informative message that tells the user to check the dir manually.

An alternative would be to just use shutil.rmtree instead.

Note: See TracQuery for help on using queries.