Changeset 39672
- Timestamp:
- Sep 9, 2016, 11:38:38 AM (10 years ago)
- Location:
- branches/czw_branch/20160809/Nebulous-Server
- Files:
-
- 4 edited
-
Build.PL (modified) (1 diff)
-
bin/neb-aliasadd (modified) (2 diffs)
-
bin/neb-cabadd (modified) (3 diffs)
-
lib/Nebulous/Server.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Nebulous-Server/Build.PL
r39667 r39672 48 48 bin/neb-voladd 49 49 bin/neb-voladm 50 bin/neb-aliasadd 50 51 bin/neb-insedit 51 52 bin/neb-host -
branches/czw_branch/20160809/Nebulous-Server/bin/neb-aliasadd
r39662 r39672 62 62 my ($vol_id, $tmp_name); 63 63 64 my $vol_query = $db ->prepare_cached( $sql->get_volume_by_name );64 my $vol_query = $dbh->prepare( $sql->get_volume_by_name ); 65 65 $vol_query->execute( $target ); 66 ($vol_id, $tmp_name, undef, undef) = vol_query->fetchrow_array;66 ($vol_id, $tmp_name, undef, undef) = $vol_query->fetchrow_array; 67 67 $vol_query->finish; 68 68 … … 91 91 my ($vol_id, $tmp_name); 92 92 93 my $vol_query = $db ->prepare_cached( $sql->get_volume_by_name );93 my $vol_query = $dbh->prepare( $sql->get_volume_by_name ); 94 94 $vol_query->execute( $target ); 95 ($vol_id, $tmp_name, undef, undef) = vol_query->fetchrow_array;95 ($vol_id, $tmp_name, undef, undef) = $vol_query->fetchrow_array; 96 96 $vol_query->finish; 97 97 -
branches/czw_branch/20160809/Nebulous-Server/bin/neb-cabadd
r39662 r39672 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($db, $dbhost, $dbuser, $dbpass, $cname, $location, $site_id, $update );21 my ($db, $dbhost, $dbuser, $dbpass, $cname, $location, $site_id, $update, $cab_id); 22 22 23 23 $db = $ENV{'NEB_DB'} unless $db; … … 34 34 'location|l=s' => \$location, 35 35 'site_id|s=s' => \$site_id, 36 'cab_id=s' => \$cab_id, 36 37 'update|u' => \$update, 37 38 ) || pod2usage( 2 ); … … 55 56 56 57 if (defined($update)) { 57 unless ($cname && $location && $site_id ) {58 pod2usage( -msg => "Required options for update: --db --user --pass --cname --site_id --location ", -exitval => 2 );58 unless ($cname && $location && $site_id && $cab_id) { 59 pod2usage( -msg => "Required options for update: --db --user --pass --cname --site_id --location --cab_id", -exitval => 2 ); 59 60 } 60 61 print "Updating cabinet..."; -
branches/czw_branch/20160809/Nebulous-Server/lib/Nebulous/Server.pm
r39662 r39672 1753 1753 } 1754 1754 1755 sub find_instances 1755 sub find_instances_old 1756 1756 { 1757 1757 my $self = shift; … … 1865 1865 } 1866 1866 1867 sub find_instances_by_proximity 1867 #sub find_instances_by_proximity 1868 sub find_instances 1868 1869 { 1869 1870 my $self = shift;
Note:
See TracChangeset
for help on using the changeset viewer.
