fix bug in job->device init

This commit is contained in:
Oliver Gorwits
2017-10-09 14:07:56 +01:00
parent 207476950d
commit 0a575f02ba

View File

@@ -31,7 +31,7 @@ around BUILDARGS => sub {
my ( $orig, $class, @args ) = @_;
my $params = $args[0] or return $class->$orig(@args);
if ((ref {} eq ref $params) and ref $params->{device}) {
if ((ref {} eq ref $params) and $params->{device}) {
$params->{device} = get_device( $params->{device} );
}