Changeset 38180 for trunk/ippScripts/scripts/sc_remote_poll.pl
- Timestamp:
- Apr 24, 2015, 11:25:28 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/sc_remote_poll.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_remote_poll.pl
r38168 r38180 116 116 # Hard coded values 117 117 my $DMZ_HOST = $remote_recipe{DMZ_HOST}; 118 my @SEC_HOSTS= @{ $remote_recipe{SEC_HOST} }; 119 my $SEC_HOST; 120 if ($#SEC_HOSTS != -1) { 121 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 122 } 123 else { 124 $SEC_HOST = ''; 118 my @SEC_HOSTS = (); 119 my $SEC_HOST = ''; 120 121 if (defined($remote_recipe{SEC_HOST})) { 122 @SEC_HOSTS = @{ $remote_recipe{SEC_HOST} }; 123 if ($#SEC_HOSTS != -1) { 124 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 125 } 126 else { 127 $SEC_HOST = ''; 128 } 125 129 } 126 130 my $IPP_PATH = $remote_recipe{IPP_PATH}; … … 434 438 } 435 439 else { 436 $cmd = "$scp $file ${DMZ_HOST}:${destination}";440 $cmd = "$scp ${DMZ_HOST}:${destination} $file"; 437 441 } 438 442
Note:
See TracChangeset
for help on using the changeset viewer.
