Changeset 362


Ignore:
Timestamp:
04/12/18 13:33:44 (6 years ago)
Author:
martijk
Message:

import from future at top of file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/sara_nodes.py

    r361 r362  
    88
    99## The documenation, is shown when you type --help
     10from __future__ import print_function
     11
    1012HELP_DESCRIPTION = '''This program is a great example what you can achieve with the pbs_python wrapper. You can use sara_nodes to change the state of a machine to offline with a reason. Several information is stored in the nodes note attribute. Information such as; date added, date last change, the username, ticket number (handy when you wan't to reference to an issue in your tracking system) and the message.'''
    1113HELP_EPILOG = '''The format argument uses the Python string formatting. Fields that can be used are; nodename, state, date_add, date_edit, username, ticket and note. For example sara_nodes -f '%(nodename)s;%(state)s' '''
     
    1820ALLOWED_STATES = set(['down', 'offline', 'unknown'])
    1921
    20 from __future__ import print_function
    2122import pbs
    2223import PBSQuery
Note: See TracChangeset for help on using the changeset viewer.