-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `activate`, `deactivate`, and `is-activated` now all warn to stderr when used, and no longer have any other effects -- tests are updated to check this - `--skip-activation-check` for task submission commands is now hidden -- and commented as a deprecated option but not otherwise changed - remove activation helper functions - remove the autoactivate success fixture data from tests - remove `Activated` from `globus endpoint show` text output
- Loading branch information
Showing
21 changed files
with
77 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
### Other | ||
|
||
* The CLI has removed remaining support for activation. | ||
|
||
* Activation commands such as `globus endpoint is-activated` are already | ||
hidden, but now act as no-ops when invoked and emit warnings to stderr | ||
about their upcoming removal. | ||
|
||
* The `--skip-activation-check` option for Transfer task submission has | ||
been deprecated. | ||
|
||
* `Activated` is no longer a field in `globus endpoint show` output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import uuid | ||
|
||
from globus_cli.login_manager import LoginManager | ||
import click | ||
|
||
from globus_cli.parsing import command, endpoint_id_arg | ||
from globus_cli.termio import display | ||
|
||
|
||
@command("deactivate", deprecated=True, hidden=True) | ||
@endpoint_id_arg | ||
@LoginManager.requires_login("transfer") | ||
def endpoint_deactivate(login_manager: LoginManager, *, endpoint_id: uuid.UUID) -> None: | ||
def endpoint_deactivate(*, endpoint_id: uuid.UUID) -> None: | ||
""" | ||
Remove the credential previously assigned to an endpoint via | ||
'globus endpoint activate' or any other form of endpoint activation | ||
Deactivate an endpoint. | ||
Endpoint Activation has been removed from the Globus ecosystem. This command | ||
no longer does anything. | ||
""" | ||
transfer_client = login_manager.get_transfer_client() | ||
res = transfer_client.endpoint_deactivate(endpoint_id) | ||
display(res, text_mode=display.RAW, response_key="message") | ||
click.echo( | ||
click.style( | ||
"`globus endpoint deactivate` has been deprecated and " | ||
"will be removed in a future release.", | ||
fg="yellow", | ||
), | ||
err=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.