Prevent ssconf values from having non-string values
authorIustin Pop <iustin@google.com>
Tue, 12 Apr 2011 14:04:43 +0000 (16:04 +0200)
committerIustin Pop <iustin@google.com>
Thu, 14 Apr 2011 08:36:57 +0000 (10:36 +0200)
commit2afc923800504bbc7f55c76f73d7706dcda08bea
tree0a9dd2c44293e4dee518b0f2d3260981bfffb83e
parent9cbc1edb3e2672d74e6e4f9807499524d64ed2b6
Prevent ssconf values from having non-string values

For whatever reason, my test cluster managed to acquire
shared_file_storage_dir with a None value, instead of empty
string. This is not flagged in masterd itself, but the node daemon
will fail in writing the value to disk, as it calls len() on the
received value.

Since this is a bad case, we should detect it as soon as possible (we
basically shouldn't be able to set it), but in the meantime we at
least prevent ssconf writes with such values.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/config.py