Add models_exist function to libjuju.py 37/9637/4
authorDavid Garcia <david.garcia@canonical.com>
Tue, 25 Aug 2020 13:03:01 +0000 (15:03 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Fri, 11 Sep 2020 12:33:20 +0000 (14:33 +0200)
commit42f328a34a3ec7c066350de81e1331632a3fee92
treef2116ce23f24c019addea804506f66c6540eca1e
parentf414edf8e9f6247e6ededbeed2318abe8027257a
Add models_exist function to libjuju.py

This function checks if a gives list of model names exist in the controller.
Additionally, it returns the list of unexisting models from the given list.

Change-Id: I2a9290ef1a4ee1308626f3a31dba0a83127fdd8c
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/libjuju.py
n2vc/tests/unit/test_libjuju.py