NetworkCloud 2023-05-01 API scenarios tests created for Networkcloud …#6422
Conversation
…az cli extension resources
|
Hi @priyamshet, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
…az cli extension resources
17bc276 to
d90ec1f
Compare
|
@kairu-ms Can we get request your review on this PR |
There was a problem hiding this comment.
You can use to_serialized_data() function, which will serialize an AAZValue to python build-in type value.
| if list(args.ssh_dest_key_path): | |
| ssh_keys += CustomSshOptions.get_ssh_keys_from_path( | |
| list(args.ssh_dest_key_path) | |
| ) | |
| if has_value(args.ssh_dest_key_path) and args.ssh_dest_key_path.to_serialized_data(): | |
| ssh_keys += CustomSshOptions.get_ssh_keys_from_path( | |
| args.ssh_dest_key_path.to_serialized_data() | |
| ) |
There was a problem hiding this comment.
if we update to to_serialized_data() , we encounter an error that list object does not have a to_serialized_data() , are we missing anything here?
There was a problem hiding this comment.
Can you share the code raise this error?
The AAZList has to_serialized_data function, but the python build-in list doesn't have to_serialized_data function. The output of to_serialized_data for AAZList is a python list.
There was a problem hiding this comment.
If the values comes from to_serialized_data(), the key is string type by default.
There was a problem hiding this comment.
As the calling function could not be updated to use to_serialized_data() due to an error (details in previous comment), leaving this as this. please let us know if we missed anything.
ee103db to
e10adbe
Compare
e10adbe to
5bb2b04
Compare
5bb2b04 to
714dc2d
Compare
|
@kairu-ms We have addressed most of your feedback, Can we request your re-review on this please. |
|
[Release] Update index.json for extension [ networkcloud ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=67170&view=results |

Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.NetworkCLoud AAZ PR : Azure/aaz#214