(self,tgt,arg)
return jid
Based on the list forms deployment
Based on the list forms deployment
Based on the list forms deployment
def target_deploy(self,tgt,arg):
        ''' Based on the list forms deployment '''
        params = {'client': 'local_async', 'tgt': tgt, 'fun': 'state.sls', 'arg': arg, 'expr_form': 'list'}
        obj = urllib.urlencode(params)
        content = self.postRequest(obj)
        jid = content['return'][0]['jid']
        return jid
def target_deploy ( self , tgt , arg ) : params = { 'client' : 'local_async' , 'tgt' : tgt , 'fun' : 'state.sls' , 'arg' : arg , 'expr_form' : 'list' } obj = urllib . urlencode ( params ) content = self . postRequest ( obj ) jid = content [ 'return' ] [ 0 ] [ 'jid' ] return jid