Skip to content

Commit 86833ba

Browse files
Update devices.py (#226)
1 parent 5b51d41 commit 86833ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/code42cli/cmds/devices.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def change_device_name_option(help_msg):
5151
type=click.DateTime(formats=[DATE_FORMAT]),
5252
default=None,
5353
help="The date on which the archive should be purged from cold storage in yyyy-MM-dd format. "
54-
"If not provided, the date will be set according to the appropriate org settings.",
54+
"If not provided, the date will be set according to the appropriate organization settings.",
5555
)
5656

5757

@@ -125,7 +125,7 @@ def _verify_guid_type(device_guid):
125125
int(device_guid)
126126
return device_guid
127127
except ValueError:
128-
raise Code42CLIError("Not a valid guid.")
128+
raise Code42CLIError("Not a valid GUID.")
129129

130130

131131
def _update_cold_storage_purge_date(sdk, guid, purge_date):
@@ -152,7 +152,7 @@ def _change_device_name(sdk, guid, name):
152152
@device_guid_argument
153153
@sdk_options()
154154
def show(state, device_guid, format=None):
155-
"""Print individual device info. Requires device GUID."""
155+
"""Print individual device details. Requires device GUID."""
156156

157157
formatter = OutputFormatter(format, _device_info_keys_map())
158158
backup_set_formatter = OutputFormatter(format, _backup_set_keys_map())
@@ -208,8 +208,8 @@ def _get_device_info(sdk, device_guid):
208208
required=False,
209209
type=str,
210210
default=None,
211-
help="Limit devices to only the ones in the org you specify. "
212-
"Note that child orgs will be included.",
211+
help="Limit devices to only those in the organization you specify. "
212+
"Note that child organizations will be included.",
213213
)
214214

215215
include_usernames_option = click.option(

tests/cmds/test_devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def test_deactivate_deactivates_device(
367367
def test_deactivate_when_given_non_guid_raises_before_making_request(runner, cli_state):
368368
result = runner.invoke(cli, ["devices", "deactivate", "not_a_guid"], obj=cli_state)
369369
assert result.exit_code == 1
370-
assert "Not a valid guid." in result.output
370+
assert "Not a valid GUID." in result.output
371371
assert cli_state.sdk.devices.deactivate.call_count == 0
372372

373373

0 commit comments

Comments
 (0)