Changeset 3591

Show
Ignore:
Timestamp:
11/05/2009 02:36:59 PM (3 weeks ago)
Author:
tiradani
Message:

removed unused imports, an unused tempfile variable and added a function to help with debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gip/trunk/gip/plugins/downtime.py

    r3532 r3591  
    55import time 
    66import pickle 
    7 import socket 
    87import urllib2 
    98import calendar 
    10 import tempfile 
    119import xml.dom.minidom 
    1210 
     
    7674            return True 
    7775 
     76    def printDowntime(self): 
     77        print "{resource_group:%s, resource:%s, fqdn:%s, start:%s, end:%s}" % \ 
     78            (self.resource_group, self.resource, self.fqdn, self.start, self.end) 
     79         
    7880class ExternalDowntimePlugin(object): 
    7981 
     
    8385 
    8486    def downloadDowntimes(self): 
    85         temp_dir = os.path.expandvars(cp_get(self.cp, "gip", "temp_dir", \ 
    86             "$GIP_LOCATION/var/tmp")) 
    8787        downtime_url = cp_get(self.cp, "gip", "downtime_url", default_url) 
    8888        try: