зеркало из https://github.com/mozilla/stoneridge.git
Fix netconfig & os post variables to be named what the server expects
This commit is contained in:
Родитель
1d98420885
Коммит
609ce26dd1
|
@ -105,8 +105,8 @@ def srpush(sha, host, ldap, password, netconfigs, operating_systems):
|
||||||
post = {'srid': srid,
|
post = {'srid': srid,
|
||||||
'sha': sha,
|
'sha': sha,
|
||||||
'ldap': ldap,
|
'ldap': ldap,
|
||||||
'netconfigs': netconfigs,
|
'netconfig': netconfigs,
|
||||||
'operating_systems': operating_systems}
|
'operating_system': operating_systems}
|
||||||
|
|
||||||
req = urllib2.Request(url, data=urllib.urlencode(post, doseq=True))
|
req = urllib2.Request(url, data=urllib.urlencode(post, doseq=True))
|
||||||
handler = urllib2.urlopen(req)
|
handler = urllib2.urlopen(req)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче