blob: 5ad12d801629f58fb7df2c4a0172bbaf68478136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import requests
import sys
from testscripts.const import MSB_BASE_URL, NS_CSAR_PATH
id = sys.argv[1]
url = MSB_BASE_URL + '/api/nsd/v1/ns_descriptors/' + id + '/nsd_content'
resp = requests.get(url)
local_file = open(NS_CSAR_PATH, 'wb')
local_file.write(resp.content)
local_file.close()
|