Skip to content

Commit e87b49c

Browse files
#722 fixed up i18n file
1 parent ff83c78 commit e87b49c

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

plugin/commands/file/volume_modify.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"github.com/spf13/cobra"
66

7-
slErr "github.ibm.com/SoftLayer/softlayer-cli/plugin/errors"
87
. "github.ibm.com/SoftLayer/softlayer-cli/plugin/i18n"
98
"github.ibm.com/SoftLayer/softlayer-cli/plugin/managers"
109
"github.ibm.com/SoftLayer/softlayer-cli/plugin/metadata"

plugin/commands/file/volume_modify_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package file_test
22

33
import (
4+
"errors"
45
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/testhelpers/terminal"
56
. "github.com/onsi/ginkgo/v2"
67
. "github.com/onsi/gomega"

plugin/i18n/v2Resources/active.en-US.json

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,8 @@
347347
"${COMMAND_NAME} sl {{.Command}} usage IDENTIFIER [OPTIONS]\nUsage information of a virtual server.\nExample:\n ${COMMAND_NAME} sl {{.Command}} usage 1234 --start 2006-01-02 --end 2006-01-02 --valid-data cpu0": {
348348
"other": "${COMMAND_NAME} sl {{.Command}} usage IDENTIFIER [OPTIONS]\nUsage information of a virtual server.\nExample:\n ${COMMAND_NAME} sl {{.Command}} usage 1234 --start 2006-01-02 --end 2006-01-02 --valid-data cpu0"
349349
},
350-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678.": {
351-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678."
352-
},
353-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-list 12345678 --sortby id \n This command lists all hosts that are authorized to access volume with ID 12345678 and sorts them by ID.": {
354-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-list 12345678 --sortby id \n This command lists all hosts that are authorized to access volume with ID 12345678 and sorts them by ID."
350+
"${COMMAND_NAME} sl {{.storageType}} access-authorize VOLUME_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678.": {
351+
"other": "${COMMAND_NAME} sl {{.storageType}} access-authorize VOLUME_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678."
355352
},
356353
"${COMMAND_NAME} sl {{.storageType}} access-password ACCESS_ID --password PASSWORD\n\t\n\tACCESS_ID is the allowed_host_id from '${COMMAND_NAME} sl {{.storageType}} access-list'": {
357354
"other": "${COMMAND_NAME} sl {{.storageType}} access-password ACCESS_ID --password PASSWORD\n\t\n\tACCESS_ID is the allowed_host_id from '${COMMAND_NAME} sl {{.storageType}} access-list'"
@@ -362,17 +359,11 @@
362359
"${COMMAND_NAME} sl {{.storageType}} replica-failback VOLUME_ID\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failback 12345678\n This command performs failback operation for volume with ID 12345678.": {
363360
"other": "${COMMAND_NAME} sl {{.storageType}} replica-failback VOLUME_ID\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failback 12345678\n This command performs failback operation for volume with ID 12345678."
364361
},
365-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failover 12345678 87654321\n This command performs failover operation for volume with ID 12345678 to replica volume with ID 87654321.": {
366-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failover 12345678 87654321\n This command performs failover operation for volume with ID 12345678 to replica volume with ID 87654321."
362+
"${COMMAND_NAME} sl {{.storageType}} replica-order VOLUME_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux.": {
363+
"other": "${COMMAND_NAME} sl {{.storageType}} replica-order VOLUME_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux."
367364
},
368-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux.": {
369-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux."
370-
},
371-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-partners 12345678\n This command lists existing replicant volumes for block volume with ID 12345678.": {
372-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-partners 12345678\n This command lists existing replicant volumes for block volume with ID 12345678."
373-
},
374-
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation.": {
375-
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation."
365+
"${COMMAND_NAME} sl {{.storageType}} snapshot-cancel SNAPSHOT_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation.": {
366+
"other": "${COMMAND_NAME} sl {{.storageType}} snapshot-cancel SNAPSHOT_ID [OPTIONS]\n\t\t\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation."
376367
},
377368
"${COMMAND_NAME} sl {{.storageType}} snapshot-create VOLUME_ID [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-create 12345678 --note snapshotforibmcloud\n This command creates a snapshot for volume with ID 12345678 and with addition note as snapshotforibmcloud.": {
378369
"other": "${COMMAND_NAME} sl {{.storageType}} snapshot-create VOLUME_ID [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-create 12345678 --note snapshotforibmcloud\n This command creates a snapshot for volume with ID 12345678 and with addition note as snapshotforibmcloud."
@@ -1886,6 +1877,24 @@
18861877
"Duplicate Volume Properties": {
18871878
"other": "Duplicate Volume Properties"
18881879
},
1880+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678.": {
1881+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-authorize 12345678 --virtual-id 87654321\n This command authorizes virtual server with ID 87654321 to access volume with ID 12345678."
1882+
},
1883+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-list 12345678 --sortby id \n This command lists all hosts that are authorized to access volume with ID 12345678 and sorts them by ID.": {
1884+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} access-list 12345678 --sortby id \n This command lists all hosts that are authorized to access volume with ID 12345678 and sorts them by ID."
1885+
},
1886+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failover 12345678 87654321\n This command performs failover operation for volume with ID 12345678 to replica volume with ID 87654321.": {
1887+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-failover 12345678 87654321\n This command performs failover operation for volume with ID 12345678 to replica volume with ID 87654321."
1888+
},
1889+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux.": {
1890+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-order 12345678 -s DAILY -d dal09 --tier 4 --os-type LINUX\n This command orders a replica for volume with ID 12345678, which performs DAILY replication, is located at dal09, tier level is 4, OS type is Linux."
1891+
},
1892+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-partners 12345678\n This command lists existing replicant volumes for block volume with ID 12345678.": {
1893+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} replica-partners 12345678\n This command lists existing replicant volumes for block volume with ID 12345678."
1894+
},
1895+
"EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation.": {
1896+
"other": "EXAMPLE:\n ${COMMAND_NAME} sl {{.storageType}} snapshot-cancel 12345678 --immediate -f \n This command cancels snapshot with ID 12345678 immediately without asking for confirmation."
1897+
},
18891898
"EXAMPLE: \n\t${COMMAND_NAME} sl order place CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --billing hourly --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest\n\tThis command orders an hourly VSI with 4 CPU, 16 GB RAM, 100 GB SAN disk, Ubuntu 16.04, and 1 Gbps public & private uplink in dal13": {
18901899
"other": "EXAMPLE: \n\t${COMMAND_NAME} sl order place CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --billing hourly --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest\n\tThis command orders an hourly VSI with 4 CPU, 16 GB RAM, 100 GB SAN disk, Ubuntu 16.04, and 1 Gbps public & private uplink in dal13"
18911900
},
@@ -5756,6 +5765,9 @@
57565765
"Schedule": {
57575766
"other": "Schedule"
57585767
},
5768+
"Search for volume {{.VolumeName}} found {{.VolumeCount}} volumes, expected 1.": {
5769+
"other": "Search for volume {{.VolumeName}} found {{.VolumeCount}} volumes, expected 1."
5770+
},
57595771
"Seconds between checks. [2-60]": {
57605772
"other": "Seconds between checks. [2-60]"
57615773
},

0 commit comments

Comments
 (0)