Azure / Azure/azure-cli-extensions

Unable to upload files to blob from az interactive

Open
#488 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
customer-reported extension/interactive feature-request
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

**Describe the bug**
A clear and concise description of what the bug is.
```
az>> az storage blob upload --account-name trafficmaps --name something/special --container-name testingpaths -f decoding.log.tar

progress_patch() got an unexpected keyword argument 'det'
Traceback (most recent call last):
File "/home/buchalsk/.azure/cliextensions/interactive/azext_interactive/azclishell/app.py", line 659, in cli_execute
result = invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 388, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 378, in _run_job
cmd_copy.exception_handler(ex)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 234, in new_handler
handler(ex)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 177, in handler
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 357, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 171, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 442, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 296, in upload_blob
return type_func[blob_type]()
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 289, in upload_block_blob
return client.create_blob_from_path(**create_blob_args)
File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/blockblobservice.py", line 463, in create_blob_from_path
timeout=timeout)
File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/blockblobservice.py", line 567, in create_blob_from_stream
progress_callback(0, count)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 702, in _update_progress
hook = cmd.cli_ctx.get_progress_controller(det=True)
TypeError: progress_patch() got an unexpected keyword argument 'det'
az>>
az>> exit
08:51:30 arcanain@pokeball ~/ az storage blob upload --account-name trafficmaps --name something/special --container-name testingpaths -f decoding.log.tar
Finished[#############################################################] 100.0000%
{
"etag": "\"0x8D681D0C2DAF016\"",
"lastModified": "2019-01-24T07:51:34+00:00"
}
```

**To Reproduce**
Long in to az from terminal
set supscription
run az interactive
try to upload something to blob storage

**Expected behavior**
upload my file to storage

**Environment summary**
Ubuntu 16.04 standard instalation following the official guide.
```
08:52:23 arcanain@pokeball uname -a
Linux pl1lxl-109884 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
08:52:23 arcanain@pokeball ~/ az --version
azure-cli (2.0.54)

acr (2.1.11)
acs (2.3.13)
advisor (2.0.0)
ams (0.3.1)
appservice (0.2.10)
backup (1.2.1)
batch (3.4.1)
batchai (0.4.5)
billing (0.2.0)
botservice (0.1.3)
cdn (0.2.0)
cloud (2.1.0)
cognitiveservices (0.2.4)
command-modules-nspkg (2.0.2)
configure (2.0.19)
consumption (0.4.1)
container (0.3.10)
core (2.0.54)
cosmosdb (0.2.6)
dla (0.2.3)
dls (0.1.7)
dms (0.1.1)
eventgrid (0.2.0)
eventhubs (0.3.2)
extension (0.2.3)
feedback (2.1.4)
find (0.2.13)
hdinsight (0.1.0)
interactive (0.4.1)
iot (0.3.4)
iotcentral (0.1.5)
keyvault (2.2.9)
lab (0.1.4)
maps (0.3.3)
monitor (0.2.7)
network (2.2.11)
nspkg (3.0.3)
policyinsights (0.1.0)
profile (2.1.2)
rdbms (0.3.5)
redis (0.3.2)
relay (0.1.2)
reservations (0.4.1)
resource (2.1.7)
role (2.2.0)
search (0.1.1)
servicebus (0.3.2)
servicefabric (0.1.10)
signalr (1.0.0)
sql (2.1.6)
storage (2.2.7)
telemetry (1.0.0)
vm (2.2.11)

Extensions:
interactive (0.4.1)

Python location '/opt/az/bin/python3'
Extensions directory '/home/buchalsk/.azure/cliextensions'

Python (Linux) 3.6.5 (default, Dec 20 2018, 01:00:19)
[GCC 5.4.0 20160609]

Legal docs and information: aka.ms/AzureCliLegal
```

**Additional context**
----

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.