-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NetworkCloud 2023-05-01 API scenarios tests created for Networkcloud … #6422
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 |
src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_replace.py
Outdated
Show resolved
Hide resolved
src/networkcloud/azext_networkcloud/operations/custom_properties.py
Outdated
Show resolved
Hide resolved
src/networkcloud/azext_networkcloud/operations/virtualmachine/_create.py
Outdated
Show resolved
Hide resolved
if list(args.ssh_dest_key_path): | ||
ssh_keys += CustomSshOptions.get_ssh_keys_from_path( | ||
list(args.ssh_dest_key_path) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""validate and add ssh key to the list""" | ||
|
||
key_data = [] | ||
for key in values: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the values
comes from to_serialized_data(), the key is string type by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
src/networkcloud/azext_networkcloud/operations/kubernetescluster/_create.py
Outdated
Show resolved
Hide resolved
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. |
src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_replace.py
Show resolved
Hide resolved
[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 azdev
required)python scripts/ci/test_index.py -q
locally?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.json
automatically.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