def a2dissite(site):
 ret = {}
 command = ['a2dissite', site]
 try:
  status = __salt__['cmd.retcode'](command, python_shell=False)
 except Exception as e:
  return e
 ret['Name'] = 'Apache2 Disable Site'
 ret['Site'] = site
 if (status == 256):
  ret['Status'] = 'Site {0} Not found'.format(site)
 elif (status == 0):
  ret['Status'] = 'Site {0} disabled'.format(site)
 else:
  ret['Status'] = status
 return ret

def a2dissite ( site ) : ret = { } command = [ 'a2dissite' , site ] try : status = __salt__ [ 'cmd.retcode' ] ( command , python_shell = False ) except Exception as e : return e ret [ 'Name' ] = 'Apache2 Disable Site' ret [ 'Site' ] = site if ( status == 256 ) : ret [ 'Status' ] = 'Site {0} Not found' . format ( site ) elif ( status == 0 ) : ret [ 'Status' ] = 'Site {0} disabled' . format ( site ) else : ret [ 'Status' ] = status return ret
runs a2dissite for the given site .