<s> from st2actions . runners . pythonrunner import Action <EOL> import servicenow_rest . api as sn <EOL> class BaseAction ( Action ) : <EOL> def __init__ ( self , config ) : <EOL> super ( BaseAction , self ) . __init__ ( config ) <EOL> self . client = self . _get_client ( ) <EOL> def _get_client ( self ) : <EOL> instance_name = self . config [ '<STR_LIT>' ] <EOL> username = self . config [ '<STR_LIT:username>' ] <EOL> password = self . config [ '<STR_LIT:password>' ] <EOL> return sn . Client ( instance_name , username , password ) </s>
