def testing_off(name, reload=False):
 ret = {'name': 'testing mode', 'changes': {}, 'result': True, 'comment': 'Testing mode already OFF.'}
 result = {}
 testing = __salt__['csf.get_testing_status']()
 if (int(testing) == 0):
  return ret
 disable = __salt__['csf.disable_testing_mode']()
 if disable:
  comment = 'Csf testing mode disabled'
  if reload:
   if __salt__['csf.reload']():
    comment += ' and csf reloaded.'
 ret['changes']['Testing Mode'] = 'off'
 ret['comment'] = comment
 return ret

def testing_off ( name , reload = False ) : ret = { 'name' : 'testing mode' , 'changes' : { } , 'result' : True , 'comment' : 'Testing mode already OFF.' } result = { } testing = __salt__ [ 'csf.get_testing_status' ] ( ) if ( int ( testing ) == 0 ) : return ret disable = __salt__ [ 'csf.disable_testing_mode' ] ( ) if disable : comment = 'Csf testing mode disabled' if reload : if __salt__ [ 'csf.reload' ] ( ) : comment += ' and csf reloaded.' ret [ 'changes' ] [ 'Testing Mode' ] = 'off' ret [ 'comment' ] = comment return ret
ensure testing mode is enabled in csf .