Skip to content

Commit

Permalink
some ractification
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 2, 2020
1 parent 487184c commit 4dc9d9f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions snippets/curl/activate_migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#####################n#####################################################

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

# This script requires jq command-line JSON parser
# if your system does not have jq installed, this will not work.
Expand Down Expand Up @@ -109,7 +109,7 @@ request_body="${request_body}\"data\": {"
request_body="${request_body}\"type\": \"nbcaMigrationActivateRequest\","
request_body="${request_body}\"attributes\": {"
if [ $force == 1 ]; then
request_body="${request_body}\"force\" : \"TRUE\""
request_body="${request_body}\"force\" : \"true\""
fi
request_body="${request_body}}}}"

Expand Down
2 changes: 1 addition & 1 deletion snippets/curl/complete_migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ request_body="${request_body}\"data\": {"
request_body="${request_body}\"type\": \"nbcaMigrationCompleteRequest\","
request_body="${request_body}\"attributes\": {"
if [ $force == 1 ]; then
request_body="${request_body}\"force\" : \"TRUE\""
request_body="${request_body}\"force\" : \"true\""
fi
request_body="${request_body}}}}"

Expand Down
5 changes: 1 addition & 4 deletions snippets/perl/activate-migration.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ sub printUsage {
die;
}

my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
my $protocol = "https";
my $port = 1556;
my $fqdn_hostname;
Expand Down Expand Up @@ -86,10 +85,8 @@ sub printUsage {

if (defined $reason) {
migration::activate_migration($base_url, $token, $reason, $force);
} elsif ($force == 1) {
migration::activate_migration($base_url, $token, $force);
} else {
migration::activate_migration($base_url, $token);
migration::activate_migration($base_url, $token, $force);
}

netbackup::logout($fqdn_hostname, $token);
Expand Down
1 change: 0 additions & 1 deletion snippets/perl/complete-migration.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ sub printUsage {
die;
}

my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
my $protocol = "https";
my $port = 1556;
my $fqdn_hostname;
Expand Down
1 change: 0 additions & 1 deletion snippets/perl/initiate-migration.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ sub printUsage {
die;
}

my $content_type_v4 = "application/vnd.netbackup+json;version=4.0";
my $protocol = "https";
my $port = 1556;
my $fqdn_hostname;
Expand Down

0 comments on commit 4dc9d9f

Please sign in to comment.