4 |
use strict; |
use strict; |
5 |
use warnings; |
use warnings; |
6 |
|
|
7 |
our $VERSION = '0.06_1'; |
our $VERSION = '0.07_1'; |
8 |
|
|
9 |
=head1 NAME |
=head1 NAME |
10 |
|
|
951 |
}; |
}; |
952 |
|
|
953 |
if ($self->{create}) { |
if ($self->{create}) { |
954 |
eval { |
if (! eval { $self->name } || $@) { |
|
$self->name; |
|
|
}; |
|
|
if ($@) { |
|
955 |
my $name = $1 if ($self->{url} =~ m#/node/([^/]+)/*#); |
my $name = $1 if ($self->{url} =~ m#/node/([^/]+)/*#); |
956 |
croak "can't find node name in '$self->{url}'" unless ($name); |
croak "can't find node name in '$self->{url}'" unless ($name); |
957 |
my $label = $self->{label} || $name; |
my $label = $self->{label} || $name; |
1828 |
) or confess "shuttle_url failed"; |
) or confess "shuttle_url failed"; |
1829 |
|
|
1830 |
if ($status == $rest->{status}) { |
if ($status == $rest->{status}) { |
1831 |
|
|
1832 |
|
# refresh node info after sync |
1833 |
|
$self->_set_info if ($action eq 'sync'); |
1834 |
|
|
1835 |
if ($rest->{returns} && wantarray) { |
if ($rest->{returns} && wantarray) { |
1836 |
|
|
1837 |
my @results; |
my @results; |