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

Add extension ip-group for feature requested in 10726 #1024

Merged
merged 6 commits into from
Oct 30, 2019

Conversation

haroldrandom
Copy link
Contributor

Add extension ip-group for azure-cli feature requested in 10726


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

@haroldrandom haroldrandom requested a review from zikalino October 28, 2019 12:47
@azuresdkci
Copy link

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/haroldrandom/azure-cli-extensions.git@issue_10726#subdirectory=src/$EXT&egg=$EXT"

@haroldrandom haroldrandom self-assigned this Oct 28, 2019
src/ip-group/azext_ip_group/_params.py Outdated Show resolved Hide resolved
src/ip-group/setup.py Outdated Show resolved Hide resolved
src/ip-group/setup.py Outdated Show resolved Hide resolved
with cmd.update_context(instance) as c:
c.set_param('tags', tags)

if ip_addresses is not None:
c.set_param('ip_addresses', ip_addresses)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c.set_param will check if ip_addresses is not None. We don't need if ip_addresses is not None

@zikalino zikalino merged commit 2f14443 into Azure:master Oct 30, 2019
@haroldrandom haroldrandom deleted the issue_10726 branch October 30, 2019 09:29
ManuInNZ pushed a commit to ManuInNZ/azure-cli-extensions that referenced this pull request Apr 11, 2020
* Add ip-group extension

* Remove TODO

* Remove buggy dependency and Add --ip-addresses option to update

* Fix PEP8 error

* Remove redundant None-checking of --ip-addresses when updating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants