Bug Fixes for Shipyard

Changes required for Python 3.x setup
 - urlparse in Python 2.7 was renamed to urllib.parse in Python 3.x

Change-Id: I46208e1e5779f1e35746dc2c80bae9f522966db0
This commit is contained in:
Anthony Lin 2017-08-09 00:58:48 +00:00 committed by Bryan Strassner
parent dc0daf8b79
commit 2d7f7dc57c
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
import falcon
import json
import requests
import urlparse
import urllib.parse
from .base import BaseResource
@ -45,7 +45,7 @@ class AirflowAddConnectionResource(BaseResource):
return
response = requests.get(req_url).json()
# Return output
if response["output"]["stderr"]:
resp.status = falcon.HTTP_400

View File

@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import control.api as api
import shipyard_airflow.control.api as api
def start_shipyard():
# Setup root logger
logger = logging.getLogger('shipyard')