IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 9, 2011, 1:12:24 PM (15 years ago)
Author:
watersc1
Message:

Added --volume option to use the volume name and not the host name to set the status. This is needed when we have multiple volumes on one host, and want to change only one volume's information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-host

    r28526 r32919  
    1818my ($host, $state, $note,
    1919    $db, $dbhost, $dbpass, $dbuser,
    20     $allocate, $available, $debug);
     20    $allocate, $available, $debug,$volume);
    2121
    2222# $db     = $ENV{'NEB_DB'} unless $db;
     
    5656    'dbuser=s'       => \$dbuser,
    5757    'dbpass=s'       => \$dbpass,
    58 
     58    'volume'         => \$volume,
    5959   
    6060    ) || pod2usage( 2 );
     
    9898   
    9999    my %constraint;
    100     $constraint{'v.host'} = $host;
     100    if (defined($volume)) {
     101        $constraint{'v.name'} = $host;
     102    }
     103    else {
     104        $constraint{'v.host'} = $host;
     105    }
    101106    my %set;
    102107    $set{'v.allocate'} = $allocate if defined $allocate;
Note: See TracChangeset for help on using the changeset viewer.