Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mistral_lib import actions
- from mistral_lib.security import secret
- class MyCustomAction(actions.Action):
- @secret(['password'])
- def __init__(self, username, password):
- self.username = username
- self.password = password
- def run(self):
- # do some work
- return actions.Result(data={})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement