Skip to content
Snippets Groups Projects
Commit cb95bc54 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Remove use of Prefix

New beat.cmdline tests don't need it anymore
parent ec8b5d8e
No related branches found
No related tags found
1 merge request!17Merge development branch 1.5.x
...@@ -516,9 +516,9 @@ class DataFormat(object): ...@@ -516,9 +516,9 @@ class DataFormat(object):
if isinstance(prefix, six.string_types): if isinstance(prefix, six.string_types):
prefix = utils.Prefix(prefix) prefix = utils.Prefix(prefix)
if prefix.paths[0] in self.prefix.paths: if prefix == self.prefix:
raise RuntimeError("Cannot export dataformat to the same prefix (%s in " \ raise RuntimeError("Cannot export dataformat to the same prefix ("
"%s)" % (prefix.paths[0], self.prefix.paths)) "%s)" % prefix)
for k in self.referenced.values(): for k in self.referenced.values():
k.export(prefix) k.export(prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment