Skip to content

Commit

Permalink
Adapt isotovideo to recent os-autoinst changes (#5746)
Browse files Browse the repository at this point in the history
The interface version was moved in
os-autoinst/os-autoinst@cebdde2
  • Loading branch information
mudler authored and coolo committed Sep 11, 2018
1 parent f49eab1 commit e0a0c24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/isotovideo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ use warnings;

sub VERSION {
my ($package, $version) = @_;
my $v = $main::INTERFACE // $OpenQA::Isotovideo::Interface::version;

die "isotovideo interface version $version required--this is version $main::INTERFACE" if $version != $main::INTERFACE;
die "isotovideo interface version $version required--this is version $v" if $version != $v;
}

sub get_version {
my $version = $main::INTERFACE;
my $version = $main::INTERFACE // $OpenQA::Isotovideo::Interface::version;
return unless defined $version;
($version) =~ /\d+/;
return $version;
}
Expand Down

0 comments on commit e0a0c24

Please sign in to comment.