Skip to content

Commit 4dc9d9f

Browse files
author
root
committed
some ractification
1 parent 487184c commit 4dc9d9f

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

snippets/curl/activate_migration.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#####################n#####################################################
44

5-
# This script demonstrates how to initiate CA migration.
6-
# To initiate the CA migration, a user needs to have proper permissions.
5+
# This script demonstrates how to activate the new CA.
6+
# To activate the CA migration, a user needs to have proper permissions.
77

88
# This script requires jq command-line JSON parser
99
# if your system does not have jq installed, this will not work.
@@ -109,7 +109,7 @@ request_body="${request_body}\"data\": {"
109109
request_body="${request_body}\"type\": \"nbcaMigrationActivateRequest\","
110110
request_body="${request_body}\"attributes\": {"
111111
if [ $force == 1 ]; then
112-
request_body="${request_body}\"force\" : \"TRUE\""
112+
request_body="${request_body}\"force\" : \"true\""
113113
fi
114114
request_body="${request_body}}}}"
115115

snippets/curl/complete_migration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ request_body="${request_body}\"data\": {"
108108
request_body="${request_body}\"type\": \"nbcaMigrationCompleteRequest\","
109109
request_body="${request_body}\"attributes\": {"
110110
if [ $force == 1 ]; then
111-
request_body="${request_body}\"force\" : \"TRUE\""
111+
request_body="${request_body}\"force\" : \"true\""
112112
fi
113113
request_body="${request_body}}}}"
114114

snippets/perl/activate-migration.pl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ sub printUsage {
2727
die;
2828
}
2929

30-
my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
3130
my $protocol = "https";
3231
my $port = 1556;
3332
my $fqdn_hostname;
@@ -86,10 +85,8 @@ sub printUsage {
8685

8786
if (defined $reason) {
8887
migration::activate_migration($base_url, $token, $reason, $force);
89-
} elsif ($force == 1) {
90-
migration::activate_migration($base_url, $token, $force);
9188
} else {
92-
migration::activate_migration($base_url, $token);
89+
migration::activate_migration($base_url, $token, $force);
9390
}
9491

9592
netbackup::logout($fqdn_hostname, $token);

snippets/perl/complete-migration.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ sub printUsage {
2828
die;
2929
}
3030

31-
my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
3231
my $protocol = "https";
3332
my $port = 1556;
3433
my $fqdn_hostname;

snippets/perl/initiate-migration.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ sub printUsage {
2626
die;
2727
}
2828

29-
my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
3029
my $protocol = "https";
3130
my $port = 1556;
3231
my $fqdn_hostname;

0 commit comments

Comments
 (0)