Add a default to file-driver when unspecified over RAPI
authorMichele Tartara <mtartara@google.com>
Mon, 16 Sep 2013 11:06:31 +0000 (11:06 +0000)
committerMichele Tartara <mtartara@google.com>
Mon, 16 Sep 2013 11:25:46 +0000 (11:25 +0000)
commitff34fb9706c94b48753d642630a1ce91ad4540a9
tree5201709da5234e112581c20657eec74d4e2b06c3
parent282c19224a5958993ae2516050f095c157483b33
Add a default to file-driver when unspecified over RAPI

The file-driver value, used by file-based instances, had a default value when
an instance was being created over the CLI, but not when the instance was
created through the RAPI.

This patch introduces a default value for the remote API and, while doing so,
also centralizes in a single place the definition of such a value, for both the
interfaces, in order to remove the possibility for them to be out of sync.

Fixes Issue 571.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/cli.py
lib/cmdlib/instance.py