Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from mistral_lib import actions
  2. from mistral_lib.security import secret
  3.  
  4.  
  5. class MyCustomAction(actions.Action):
  6.  
  7. @secret(['password'])
  8. def __init__(self, username, password):
  9. self.username = username
  10. self.password = password
  11.  
  12. def run(self):
  13. # do some work
  14. return actions.Result(data={})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement