[libvirt-ci PATCH 07/13] lcitool: Drop the get_flavor() method

Andrea Bolognani abologna at redhat.com
Tue Apr 28 07:34:54 UTC 2020


On Wed, 2020-04-22 at 15:28 +0200, Erik Skultety wrote:
> @@ -617,7 +591,7 @@ class Application:
>      def _action_install(self, args):
>          base = Util.get_base()
>  
> -        flavor = self._config.get_flavor()
> +        flavor = self._config.dict["install"]["flavor"]

You can remove this assignment and just use the value directly
below, like you've done in _execute_playbook().

There are also two uses of get_flavor() remaining after this
patch:

  get_gitlab_runner_token_file()
  get_gitlab_url_file()

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list