Skip to content

Commit c6d3854

Browse files
authored
Merge pull request #160 from perfsonar/148-psconfig-fail-to-accept-runs-all-attribute-in-archive-spec
bugfix: archive spec
2 parents 223f475 + bfb40d6 commit c6d3854

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

psconfig/perfsonar-psconfig/doc/psconfig-schema.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,16 @@
358358
"ttl": { "$ref": "#/pSConfig/Duration" },
359359
"_meta": { "$ref": "#/pSConfig/AnyJSON" },
360360
"label": { "type": "string" },
361-
"schema": { "$ref": "#/pSConfig/Cardinal" }
361+
"runs": {
362+
"type": "string",
363+
"enum": [
364+
"all",
365+
"succeeded",
366+
"failed"
367+
]
368+
},
369+
"schema": { "$ref": "#/pSConfig/Cardinal" },
370+
"uri-host": { "$ref": "#/pSConfig/URLHostPort" }
362371
},
363372
"additionalProperties": false,
364373
"required": [ "archiver", "data"]

psconfig/perfsonar-psconfig/psconfig/client/psconfig/archive.py

+10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ def label(self, val=None):
3838

3939
return self._field('label', val)
4040

41+
def runs(self, val=None):
42+
'''Gets/sets runs'''
43+
44+
return self._field_enum('runs', val, ["all", "succeeded", "failed"])
45+
46+
def uri_host(self, val=None):
47+
'''Gets/sets uri-host'''
48+
49+
return self._field('uri-host', val)
50+
4151
def schema(self, val=None):
4252
'''Gets/sets schema'''
4353

0 commit comments

Comments
 (0)