1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

Fixing things up to a point where "list" and "show" commands work.

This commit is contained in:
Sergei Trofimov
2017-02-09 09:09:00 +00:00
parent 92aeca8125
commit dc6d9676f2
15 changed files with 115 additions and 149 deletions

View File

@@ -492,7 +492,7 @@ def merge_config_values(base, other):
are treated as atomic, and not mergeable.
s: A sequence. Anything iterable that is not a dict or
a string (strings are considered scalars).
m: A key-value mapping. ``dict`` and it's derivatives.
m: A key-value mapping. ``dict`` and its derivatives.
n: ``None``.
o: A mergeable object; this is an object that implements both
``merge_with`` and ``merge_into`` methods.

View File

@@ -51,7 +51,7 @@ import yaml as _yaml
import dateutil.parser
from wlauto.exceptions import SerializerSyntaxError
from wlauto.utils.types import regex_type
from wlauto.utils.types import regex_type, none_type
from wlauto.utils.misc import isiterable
@@ -70,12 +70,14 @@ POD_TYPES = [
tuple,
dict,
set,
basestring,
str,
unicode,
int,
float,
bool,
datetime,
regex_type
regex_type,
none_type,
]
class WAJSONEncoder(_json.JSONEncoder):
@@ -257,3 +259,4 @@ def _read_pod(fh, fmt=None):
def is_pod(obj):
return type(obj) in POD_TYPES

View File

@@ -169,6 +169,7 @@ list_or_bool = list_or(boolean)
regex_type = type(re.compile(''))
none_type = type(None)
def regex(value):