1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Roles import Role, Roles
5 from PLC.Auth import Auth
11 Returns 1 if successful, faults otherwise.
21 returns = Parameter(int, '1 if successful')
24 def call(self, auth, name):
25 role = Roles(self.api, {'name': name})
26 role.sync(insert=True)
27 #self.api.client_shell.keystone.roles.create(name=name)