Skip to content

Commit

Permalink
acs: *_install_cli mark cli as executable (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
colemickens authored and derekbekoe committed Nov 28, 2016
1 parent 59688b9 commit 97fb037
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os.path
import platform
import random
import stat
import string
import subprocess
import sys
Expand Down Expand Up @@ -140,6 +141,7 @@ def dcos_install_cli(install_location=None, client_version='1.8'):
logger.info('Downloading client to %s', install_location)
try:
urlretrieve(file_url, install_location)
os.chmod(install_location, os.stat(install_location).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
except IOError as err:
raise CLIError('Connection error while attempting to download client ({})'.format(err))

Expand All @@ -163,6 +165,7 @@ def k8s_install_cli(client_version="1.4.5", install_location=None):
logger.info('Downloading client to %s', install_location)
try:
urlretrieve(file_url, install_location)
os.chmod(install_location, os.stat(install_location).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
except IOError as err:
raise CLIError('Connection error while attempting to download client ({})'.format(err))

Expand Down

0 comments on commit 97fb037

Please sign in to comment.