allow silent mode (default value) for runcmd() and addEntry()
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="verbose" type="optional" default="False"> |
| | | <function-arg-description> |
| | | Display (or not) output. Default is True |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Local variables --> |
| | |
| | | { 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : mylocation, |
| | | 'name' : 'Add Entry From LDIF' |
| | | 'name' : 'Add Entry From LDIF', |
| | | 'verbose' : verbose |
| | | } |
| | | </call> |
| | | <script> |
| | |
| | | The duration that the process is allowed to run |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="verbose" default="False" type="optional"> |
| | | <function-arg-description> |
| | | A boolean (use True or False here, case matters) to output the |
| | | outputs of the command |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <script> |
| | |
| | | </process> |
| | | </block> |
| | | |
| | | <if expr="verbose == True"> |
| | | <message level="'info'"> |
| | | '%s: Command returned:\n%s' % (_id,STAXResult[0][1]) |
| | | </message> |
| | | </if> |
| | | <script> |
| | | def dig(var): |
| | | try: |