~reldan/nova/l-m-n-fix-network-info

« back to all changes in this revision

Viewing changes to nova/server.py

  • Committer: Eric Day
  • Date: 2010-10-21 18:49:51 UTC
  • mto: This revision was merged to the branch mainline in revision 377.
  • Revision ID: eday@oddments.org-20101021184951-x0vs3s8y7mc0aeyy
PEP8 and pylint cleanup. There should be no functional changes here, just style changes to get violations down.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    """
55
55
    # Get the pid from the pidfile
56
56
    try:
57
 
        pid = int(open(pidfile,'r').read().strip())
 
57
        pid = int(open(pidfile, 'r').read().strip())
58
58
    except IOError:
59
59
        message = "pidfile %s does not exist. Daemon not running?\n"
60
60
        sys.stderr.write(message % pidfile)
61
 
        return # not an error in a restart
 
61
        return
62
62
 
63
63
    # Try killing the daemon process
64
64
    try:
143
143
            stderr=stderr,
144
144
            uid=FLAGS.uid,
145
145
            gid=FLAGS.gid,
146
 
            files_preserve=files_to_keep
147
 
            ):
 
146
            files_preserve=files_to_keep):
148
147
        main(args)