Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8089422
fix live tests for sas token urls to use datetime (#7866)
williexu Nov 16, 2018
78cb801
Convert test back to scenario test. (#7862)
tjprescott Nov 16, 2018
50fa3ef
Remove unused scripts. (#7860)
tjprescott Nov 16, 2018
bfe8048
fix get curren user id azure-graphrbac Breaking change fixes #7839 (#…
a-santamaria Nov 16, 2018
ec8454a
Use knack 0.5.1. (#7780)
tjprescott Nov 16, 2018
2bdfdd4
test: make webjob tests record only as create command is unavailable …
yugangw-msft Nov 17, 2018
1801ecc
Deprecate expand param. (#7868)
adewaleo Nov 17, 2018
8cb5b57
Updated help.py - generate-sas example (#7873)
jochenvanwylick Nov 19, 2018
0c3f3ea
Low priority vmss test and help update. (#7882)
adewaleo Nov 20, 2018
f899f2c
Added --force to az vm restart. Added simple test. (#7885)
adewaleo Nov 20, 2018
584129a
Fix requests version > 2.20 (#7858)
tjprescott Nov 15, 2018
5d6ead9
Bump CLI versions
yugangw-msft Nov 20, 2018
b70b6fb
[vm] Enable password and ssh key authentication during linux VM creat…
adewaleo Nov 21, 2018
2c7c67c
Properly handle parsing of ids from -o tsv on windows. (#7898)
adewaleo Nov 21, 2018
0d0c5c4
[Storage] bump mgmt sdk version to 3.1.0 and set new api-version to u…
williexu Nov 22, 2018
82ce638
test: live test fixes in appservice, vm, resource (#7899)
yugangw-msft Nov 22, 2018
a262785
ci: fix build break (#7900)
yugangw-msft Nov 22, 2018
0e77742
Updated adls version (#7859)
akharit Nov 26, 2018
96837ab
core: support cross tenant resource provisioning for multi-tenant ser…
yugangw-msft Nov 26, 2018
cfef25b
core: fix the error on matching SP creds (#7923)
yugangw-msft Nov 27, 2018
8c08da2
resource: fix live test failure of policyset (#7922)
yugangw-msft Nov 28, 2018
adcb813
[CI] reenable extension checking in CI (#7933)
williexu Nov 28, 2018
0729c9f
BotService: Bugfixing, code refactoring, reorganization and UX revamp…
carlosscastro Nov 28, 2018
bb2981e
Close #7528. (#7920)
tjprescott Nov 28, 2018
d519d2d
Minor updates to core/generate_ssh_keys and batchai/_generate_ssh_key…
adewaleo Nov 29, 2018
39d51fa
[image] create. Add --os-disk-caching parameter. (#7919)
adewaleo Nov 29, 2018
30c09be
graph: support custom key identifier (#7913)
yugangw-msft Nov 29, 2018
e2d298a
BotService: fix tests, improve test robustness and update recordings …
carlosscastro Nov 29, 2018
b8fb3f3
webapp: Adding support for az webapp up (#7930)
panchagnula Nov 29, 2018
e72983f
core: fix a breaking in kv when run under service principal (#7946)
yugangw-msft Nov 29, 2018
a454bb4
Disable version check from CI. (#7958)
tjprescott Nov 30, 2018
02b3f35
test: add test coverage for regression from auth (#7949)
yugangw-msft Nov 30, 2018
caddd72
[AKS] Remove "(PREVIEW)" from AAD arguments (#7960)
mboersma Nov 30, 2018
958aac4
Bug fixes for azure-cli-botservice (#7956)
stevengum Nov 30, 2018
cf5f770
[core] Updated location help text (#7951)
adewaleo Nov 30, 2018
7bb7023
EventHubs help fixes (#7961)
tjprescott Nov 30, 2018
a3af796
Fixes for VPN Client Generate (#7962)
tjprescott Nov 30, 2018
601905f
Switch from logger.warning to print for ACR build and tasks
ehotinger Dec 4, 2018
54d8ff3
Merge remote-tracking branch 'upstream/dev' into dev
ehotinger Dec 4, 2018
e1890a2
Merge branch 'dev' into ehotinger/print
ehotinger Dec 4, 2018
a14f1bb
Merge branch 'dev' into ehotinger/print
ehotinger Dec 10, 2018
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 @@ -38,7 +38,7 @@ def upload_source_code(client,
break
size = size / 1024.0

logger.warning("Uploading archived source code from '%s'...", tar_file_path)
print("Uploading archived source code from '{}'...".format(tar_file_path))
upload_url = None
relative_path = None
error_message = "Could not get SAS URL to upload."
Expand All @@ -62,21 +62,21 @@ def upload_source_code(client,
container_name=container_name,
blob_name=blob_name,
file_path=tar_file_path)
logger.warning("Sending context ({0:.3f} {1}) to registry: {2}...".format(
print("Sending context ({0:.3f} {1}) to registry: {2}...".format(
size, unit, registry_name))
return relative_path


def _pack_source_code(source_location, tar_file_path, docker_file_path, docker_file_in_tar):
logger.warning("Packing source code into tar to upload...")
print("Packing source code into tar to upload...")

ignore_list, ignore_list_size = _load_dockerignore_file(source_location)
common_vcs_ignore_list = {'.git', '.gitignore', '.bzr', 'bzrignore', '.hg', '.hgignore', '.svn'}

def _ignore_check(tarinfo, parent_ignored, parent_matching_rule_index):
# ignore common vcs dir or file
if tarinfo.name in common_vcs_ignore_list:
logger.warning("Excluding '%s' based on default ignore rules", tarinfo.name)
print("Excluding '{}' based on default ignore rules".format(tarinfo.name))
return True, parent_matching_rule_index

if ignore_list is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def acr_build(cmd,
logger.info("'--file or -f' is not provided. '%s' is used.", docker_file_path)

source_location = check_remote_source_code(source_location)
logger.warning("Sending context to registry: %s...", registry_name)
print("Sending context to registry: {}...".format(registry_name))

if no_push:
is_push_enabled = False
Expand All @@ -105,7 +105,7 @@ def acr_build(cmd,
_warn_unsupported_image_name(image_names)
else:
is_push_enabled = False
logger.warning("'--image or -t' is not provided. Skipping image push after build.")
print("'--image or -t' is not provided. Skipping image push after build.")

docker_build_request = DockerBuildRequest(
image_names=image_names,
Expand All @@ -123,8 +123,8 @@ def acr_build(cmd,
run_request=docker_build_request))

run_id = queued_build.run_id
logger.warning("Queued a build with ID: %s", run_id)
logger.warning("Waiting for agent...")
print("Queued a build with ID: {}".format(run_id))
print("Waiting for agent...")

if no_logs:
return get_run_with_polling(client, run_id, registry_name, resource_group_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def acr_build_task_run(cmd,
BuildTaskBuildRequest(build_task_name=build_task_name)))

build_id = queued_build.build_id
logger.warning("Queued a build with ID: %s", build_id)
logger.warning("Waiting for agent...")
print("Queued a build with ID: {}".format(build_id))
print("Waiting for agent...")

if no_logs:
return get_build_with_polling(client, build_id, registry_name, resource_group_name)
Expand Down Expand Up @@ -400,10 +400,10 @@ def acr_build_task_logs(cmd,
image=image)
try:
build_id = paged_builds.get(0)[0].build_id
logger.warning(_get_list_builds_message(base_message="Showing logs of the last created build",
build_task_name=build_task_name,
image=image))
logger.warning("Build ID: %s", build_id)
print(_get_list_builds_message(base_message="Showing logs of the last created build",
build_task_name=build_task_name,
image=image))
print("Build ID: {}".format(build_id))
except (AttributeError, KeyError, TypeError, IndexError):
raise CLIError(_get_list_builds_message(base_message="Could not find the last created build",
build_task_name=build_task_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def acr_run(cmd,
pass
else:
source_location = check_remote_source_code(source_location)
logger.warning("Sending context to registry: %s...", registry_name)
print("Sending context to registry: {}...".format(registry_name))

request = FileTaskRunRequest(
task_file_path=file,
Expand All @@ -85,12 +85,12 @@ def acr_run(cmd,
run_request=request))

run_id = queued.run_id
logger.warning("Queued a run with ID: %s", run_id)
print("Queued a run with ID: {}".format(run_id))

if no_wait:
return queued

logger.warning("Waiting for an agent...")
print("Waiting for an agent...")

if no_logs:
return get_run_with_polling(client, run_id, registry_name, resource_group_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ def acr_task_run(cmd,
)

run_id = queued_run.run_id
logger.warning("Queued a run with ID: %s", run_id)
print("Queued a run with ID: {}".format(run_id))

if no_wait:
return queued_run

logger.warning("Waiting for an agent...")
print("Waiting for an agent...")

if no_logs:
return get_run_with_polling(client, run_id, registry_name, resource_group_name)
Expand Down Expand Up @@ -485,10 +485,10 @@ def acr_task_logs(cmd,
image=image)
try:
run_id = paged_runs.get(0)[0].run_id
logger.warning(_get_list_runs_message(base_message="Showing logs of the last created run",
task_name=task_name,
image=image))
logger.warning("Run ID: %s", run_id)
print(_get_list_runs_message(base_message="Showing logs of the last created run",
task_name=task_name,
image=image))
print("Run ID: {}".format(run_id))
except (AttributeError, KeyError, TypeError, IndexError):
raise CLIError(_get_list_runs_message(base_message="Could not find the last created run",
task_name=task_name,
Expand Down