Revision c68d1f43 qa/ganeti-qa.py

b/qa/ganeti-qa.py
28 28
"""
29 29

  
30 30
import sys
31
from datetime import datetime
32
from optparse import OptionParser
31
import datetime
32
import optparse
33 33

  
34 34
import qa_cluster
35 35
import qa_config
......
52 52
  else:
53 53
    desc = '%r' % fn
54 54

  
55
  now = str(datetime.now())
55
  now = str(datetime.datetime.now())
56 56

  
57 57
  print
58 58
  print '---', now, ('-' * (55 - len(now)))
......
218 218
  """Main program.
219 219

  
220 220
  """
221
  parser = OptionParser(usage="%prog [options] <config-file>"
222
                              " <known-hosts-file>")
221
  parser = optparse.OptionParser(usage="%prog [options] <config-file>"
222
                                       " <known-hosts-file>")
223 223
  parser.add_option('--dry-run', dest='dry_run',
224 224
      action="store_true",
225 225
      help="Show what would be done")

Also available in: Unified diff