Skip to content

Commit

Permalink
Merge pull request #160 from perfsonar/148-psconfig-fail-to-accept-ru…
Browse files Browse the repository at this point in the history
…ns-all-attribute-in-archive-spec

bugfix: archive spec
  • Loading branch information
arlake228 authored Feb 20, 2025
2 parents 223f475 + bfb40d6 commit c6d3854
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion psconfig/perfsonar-psconfig/doc/psconfig-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,16 @@
"ttl": { "$ref": "#/pSConfig/Duration" },
"_meta": { "$ref": "#/pSConfig/AnyJSON" },
"label": { "type": "string" },
"schema": { "$ref": "#/pSConfig/Cardinal" }
"runs": {
"type": "string",
"enum": [
"all",
"succeeded",
"failed"
]
},
"schema": { "$ref": "#/pSConfig/Cardinal" },
"uri-host": { "$ref": "#/pSConfig/URLHostPort" }
},
"additionalProperties": false,
"required": [ "archiver", "data"]
Expand Down
10 changes: 10 additions & 0 deletions psconfig/perfsonar-psconfig/psconfig/client/psconfig/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ def label(self, val=None):

return self._field('label', val)

def runs(self, val=None):
'''Gets/sets runs'''

return self._field_enum('runs', val, ["all", "succeeded", "failed"])

def uri_host(self, val=None):
'''Gets/sets uri-host'''

return self._field('uri-host', val)

def schema(self, val=None):
'''Gets/sets schema'''

Expand Down

0 comments on commit c6d3854

Please sign in to comment.