| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/net-mgmt/p5-NetApp/files/ |
Upload File : |
--- lib/NetApp/Snapshot.pm.orig 2012-06-05 22:44:25.000000000 +0800
+++ lib/NetApp/Snapshot.pm 2013-12-30 23:50:33.000000000 +0800
@@ -8,6 +8,7 @@
use warnings;
use English;
use Carp;
+use DateTime;
use Class::Std;
use Params::Validate qw( :all );
@@ -243,6 +244,7 @@
my (%args) = validate( @_, {
parent => { type => OBJECT },
name => { type => SCALAR },
+ snapname => { default => DateTime->now() },
});
my $parent = $args{parent};
@@ -253,7 +255,7 @@
push @command, '-A';
}
- push @command, $args{name};
+ push @command, $args{name}, $args{snapname};
return $parent->get_filer->_run_command(
command => \@command,