From aa44b89c714360dcd23fff1564329139d5a2b485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Mon, 5 Feb 2024 14:25:02 +0100 Subject: [PATCH] L #-: Lint onevm CLI command (cherry picked from commit b1be7955553c8afc002ed39d3b34ff897e2d7834) --- src/cli/onevm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/onevm b/src/cli/onevm index aa8c5cb8c4..bb3da32f98 100755 --- a/src/cli/onevm +++ b/src/cli/onevm @@ -1627,16 +1627,14 @@ CommandParser::CmdParser.new(ARGV) do PCI_VENDOR, PCI_DEVICE ] do - - pci_attrs = [:pci, :pci_device, :pci_vendor, :pci_class].any? do |o| !options[o].nil? end if options[:file] template = File.read(options[:file]) - elsif !(stdin = self.read_stdin).empty? - template = stdin + elsif !(stdin = OpenNebulaHelper.read_stdin).empty? + template = stdin elsif pci_attrs pcia = options[:pci] pcid = options[:pci_device]