From: Sven Velt Date: Thu, 23 Sep 2010 14:47:34 +0000 (+0200) Subject: FIX: write_xml_or_die always set Auth to None... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d0a8d781dcd9cc2b41af9e227be220d59860abe;p=nagixsc.git FIX: write_xml_or_die always set Auth to None... --- diff --git a/nagixsc/__init__.py b/nagixsc/__init__.py index 2a93b86..c58f54d 100644 --- a/nagixsc/__init__.py +++ b/nagixsc/__init__.py @@ -302,7 +302,7 @@ def write_xml(xmldoc, outfile, httpuser=None, httppasswd=None): def write_xml_or_die(xmldoc, outfile, httpuser=None, httppasswd=None): try: - response = write_xml(xmldoc, outfile, httpuser=None, httppasswd=None) + response = write_xml(xmldoc, outfile, httpuser, httppasswd) except urllib2.HTTPError, error: print error sys.exit(11)