Explicitly signal incorrect 'remote' metadata conf.
This commit is contained in:
@@ -847,6 +847,8 @@ class MetadataStore(MetaData):
|
|||||||
kwargs.update(_args)
|
kwargs.update(_args)
|
||||||
_md = InMemoryMetaData(self.attrc, args[0])
|
_md = InMemoryMetaData(self.attrc, args[0])
|
||||||
elif typ == "remote":
|
elif typ == "remote":
|
||||||
|
if "url" not in kwargs:
|
||||||
|
raise ValueError("Remote metadata must be structured as a dict containing the key 'url'")
|
||||||
key = kwargs["url"]
|
key = kwargs["url"]
|
||||||
for _key in ["node_name", "check_validity"]:
|
for _key in ["node_name", "check_validity"]:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user