Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acs: *_install_cli mark cli as executable #1449

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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