def import_pipeline(conf, args):
with open(args.pipeline_json) as pipeline_json:<EOL><INDENT>dst = conf.config['<STR_LIT>'][args.dst_instance]<EOL>dst_url = api.build_pipeline_url(build_instance_url(dst))<EOL>dst_auth = tuple([conf.creds['<STR_LIT>'][args.dst_instance]['<STR_LIT:user>'],<EOL>conf.creds['<STR_LIT>'][args.dst_instance]['<STR_LIT>']])<EOL>parsed_json = json.load(pipeline_json)<EOL>verify_ssl = dst.get('<STR_LIT>', True)<EOL>return api.import_pipeline(dst_url, args.pipeline_id, dst_auth, parsed_json, verify_ssl, overwrite=args.overwrite)<EOL><DEDENT>
Import a pipeline from json.