blob: e9b969243ed678eedcaa4938677616d166f87d33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/python
# -*- coding: utf8 -*-
# author: wly
# date: 2015/11/26
# see license for license details
from vstf.common.utils import check_call, call, check_output
def affctl_load(policy):
cmd = "affctl load %s" % policy
return check_call(cmd, shell=True)
def affctl_list():
cmd = "affctl list"
return check_output(cmd, shell=True)
|