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

Deprecate 'add-cloud --replace'. #10281

Merged
merged 4 commits into from
Jun 4, 2019

Conversation

anastasiamac
Copy link
Contributor

@anastasiamac anastasiamac commented Jun 4, 2019

Description of change

'add-cloud --replace' was an original way of updating existing cloud definitions locally.
With the introduction of a more aligned conventionally 'update-cloud', the Juju original version is now redundant.

This PR states that this option is deprecated and leads user to 'update-cloud'. It is intended to be removed in next major release.

QA steps

  1. 'juju help add-cloud' clearly messages that --replace option is deprecated.
  2. when using --replace with add-cloud command (either interactive or non-interactive mode), users get notification:
$ juju add-cloud --replace canonistack 
WARNING  'add-cloud --replace' is deprecated. Use 'update-cloud' instead.

@anastasiamac
Copy link
Contributor Author

cmd/juju/cloud/add.go Outdated Show resolved Hide resolved
@anastasiamac
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit c344824 into juju:2.6 Jun 4, 2019
@anastasiamac anastasiamac deleted the deprecate-add-cloud-replace-26 branch June 4, 2019 03:29
anastasiamac pushed a commit to anastasiamac/juju that referenced this pull request Jun 4, 2019
…eplace-26

juju#10281

## Description of change

'add-cloud --replace' was an original way of updating existing cloud definitions locally.
With the introduction of a more aligned conventionally 'update-cloud', the Juju original version is now redundant.

This PR states that this option is deprecated and leads user to 'update-cloud'. It is intended to be removed in next major release.

## QA steps

1. 'juju help add-cloud' clearly messages that --replace option is deprecated.
2. when using --replace with add-cloud command (either interactive or non-interactive mode), users get notification:

```
$ juju add-cloud --replace canonistack 
WARNING 'add-cloud --replace' is deprecated. Use 'update-cloud' instead.
```
jujubot added a commit that referenced this pull request Jun 4, 2019
…ce-27

#10282

## Description of change

Merge pull request #10281 from anastasiamac/deprecate-add-cloud-replace-26

#10281

'add-cloud --replace' was an original way of updating existing cloud definitions locally.
With the introduction of a more aligned conventionally 'update-cloud', the Juju original version is now redundant.

This PR states that this option is deprecated and leads user to 'update-cloud'. It is intended to be removed in next major release.

## QA steps

1. 'juju help add-cloud' clearly messages that --replace option is deprecated.
2. when using --replace with add-cloud command (either interactive or non-interactive mode), users get notification:

```
$ juju add-cloud --replace canonistack 
WARNING 'add-cloud --replace' is deprecated. Use 'update-cloud' instead.
```
jujubot added a commit that referenced this pull request Jun 4, 2019
#10283

## Description of change


Merge pull request #10271 from babbageclunk/force-remove-machine-cleanup

Merge pull request #10272 from babbageclunk/undertaker-credential-guard

Merge pull request #10281 from anastasiamac/deprecate-add-cloud-replace
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.

3 participants