code: def disabled(name):
      '''
      Disable the RDP service
      '''
      ret = {'name': name,
             'result': True,
             'changes': {},
             'comment': ''}
  
      stat = __salt__['rdp.status']()
  
      if stat:
          if __opts__['test']:
              ret['result'] = None
              ret['comment'] = 'RDP will be disabled'
              return ret
  
          ret['result'] = __salt__['rdp.disable']()
          ret['changes'] = {'RDP was disabled': True}
          return ret
  
      ret['comment'] = 'RDP is disabled'
      return ref disabled(name):
      '''
      Disable the RDP service
      '''
      ret = {'name': name,
             'result': True,
             'changes': {},
             'comment': ''}
  
      stat = __salt__['rdp.status']()
  
      if stat:
          if __opts__['test']:
              ret['result'] = None
              ret['comment'] = 'RDP will be disabled'
              return ret
  
          ret['result'] = __salt__['rdp.disable']()
          ret['changes'] = {'RDP was disabled': True}
          return ret
  
      ret['comment'] = 'RDP is disabled'
      return ret
docs: Disable the RDP service