Changeset 2061


Ignore:
Timestamp:
Nov 10, 2016 2:53:31 PM (7 years ago)
Author:
maronga
Message:

bugfix in PALM watchdog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_wdd

    r1619 r2061  
    2020# Current revisions:
    2121# -----------------
    22 #
     22# Bugfix: return proper error messages when .wdd.config is not found and for
     23# wrong actions
    2324#
    2425# Former revisions:
     
    6465from subprocess import check_output
    6566import sys
    66 
     67import socket
    6768
    6869# Read configuration file
    6970# First check if the configuration file exists
    7071if ( os.path.exists('.wdd.config') == False ):
    71     print "Error. No configuration file .wdd.config found."
     72    sys.stderr.write("No configuration file .wdd.config found on remote host %s." % socket.gethostname())
    7273    raise SystemExit     
    7374
     
    259260   print GetRC(data,data2) 
    260261else:
    261    print "Error. Action " + action + " unknown."
    262 
     262   sys.stderr.write("Unknown action on remote host %s." % hostname)
     263
Note: See TracChangeset for help on using the changeset viewer.