Commit 82d66bdd authored by mvdbeek's avatar mvdbeek
Browse files

That's needed for things set via galaxy.json

But it does mean that we might be running set_meta twice.
Need to figure out a better way of doing this.
parent bd6fe02a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -171,8 +171,7 @@ class ModelPersistenceContext(metaclass=abc.ABCMeta):
        if info is not None:
            primary_data.info = info

        if filename and not primary_data.id:
            # If primary data has an id it should already have gone through the metadata process
        if filename:
            self.set_datasets_metadata(datasets=[primary_data], datasets_attributes=[dataset_attributes])

        return primary_data