]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
install: split the upgrade_common function 650/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 8 Oct 2015 21:16:45 +0000 (23:16 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 8 Oct 2015 21:16:45 +0000 (23:16 +0200)
commiteb6d5c473b9f6b0cabe6f42d2e0ab615d75dbcb2
treeb43dbbe7c251de478d8fb2bb93d41d667caeeb18
parentb294b2b5afe3ccda64fa9b6013202c757811d145
install: split the upgrade_common function

The upgrade_common function implements a non trivial logic that defines
how overrides are applied to the install.upgrade task, as well as the
way upgrades are applied to the desired targets.

The function is split in two:

  upgrade_common which remains the entry point
  upgrade_remote_to_config which encapsulates the logic

This allows other parts of teuthology to obey the same logic by calling
the function instead of replicating it.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task/install.py
teuthology/test/task/test_install.py