summaryrefslogtreecommitdiffstats
path: root/tools/hostinfo.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-10-13 16:49:41 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-10-13 16:49:41 +0000
commit6794db04a229153ceefdfb3d3b99ed6e691d5df6 (patch)
tree92d4652d6cc02dffd6691982621ae54086bee2dd /tools/hostinfo.py
parenta29930d4e75ddce4c0ae65ca890924f9672e3026 (diff)
downloadbcfg2-6794db04a229153ceefdfb3d3b99ed6e691d5df6.tar.gz
bcfg2-6794db04a229153ceefdfb3d3b99ed6e691d5df6.tar.bz2
bcfg2-6794db04a229153ceefdfb3d3b99ed6e691d5df6.zip
adding functionality to hostbase command line tools
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2432 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/hostinfo.py')
-rwxr-xr-xtools/hostinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hostinfo.py b/tools/hostinfo.py
index 3418f0c76..d2b3628a3 100755
--- a/tools/hostinfo.py
+++ b/tools/hostinfo.py
@@ -1,10 +1,10 @@
#!/usr/bin/python
"""Hostinfo queries the hostbase database according to user-defined data"""
-__revision__ = '0.1'
+from os import system, environ
+environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings'
from getopt import gnu_getopt, GetoptError
from django.db import connection
-from os import system
import sys
logic_ops = ["and", "or"]