How to use lib389 to create an instance?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I keep getting this error:

Traceback (most recent call last):
  File "/home/rmeggins/scripts/repltest.py", line 53, in <module>
    m1 = tools.DirSrvTools.createInstance(createargs)
  File "/home/rmeggins/ds/ds.git/src/lib389/lib389/tools.py", line 627, in createInstance
    cfgdn = lib389.CFGSUFFIX
NameError: global name 'lib389' is not defined

this fixes it (but causes other problems):

--- a/src/lib389/lib389/tools.py
+++ b/src/lib389/lib389/tools.py
@@ -31,6 +31,7 @@ import getpass

 # from .nss_ssl import nss_create_new_database
 from threading import Timer
+import lib389
 from lib389.paths import Paths
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux