blob: 7b37b0e76a9820c2a5096e1245db92f1e39b0640 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from utils import pdp
from utils import parse
from utils import models
from utils import policies
from utils import pdp
if __name__ == "__main__":
args = parse.parse()
consul_host = args.consul_host
consul_port = args.consul_port
models.init(consul_host, consul_port)
policies.init(consul_host, consul_port)
pdp.init(consul_host, consul_port)
projects = pdp.get_keystone_projects()
for _project in projects['projects']:
print("{} {}".format(_project['id'], _project['name']))
|