Skip to content

Commit

Permalink
Fixes #18153: rudder-api-client install a non fonctionning rudder-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles authored and Jenkins CI committed Sep 1, 2020
1 parent 7a37c88 commit 9bcd4b1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cli/rudder-cli
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Options:
"""

import sys
sys.path.append("/usr/share/rudder-api-client")
from rudder import RudderEndPoint
from pprint import pprint
from docopt import docopt
Expand All @@ -32,9 +34,17 @@ import requests
import json
import os
import re
import sys

requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning)
try: # compatibility with centos 6
import urllib3
urllib3.disable_warnings()
except:
pass
try:
requests.packages.urllib3.disable_warnings()
except:
pass

# Mapping between commands and api calls
functions = {
'node' : {
Expand Down

0 comments on commit 9bcd4b1

Please sign in to comment.