dmsimard / ara-archive

This repository is an historical archive of https://github.com/dmsimard/ara, please use https://github.com/openstack/ara instead.
https://github.com/openstack/ara
GNU General Public License v3.0
120 stars 19 forks source link

Playbook file content isn't saved #108

Closed dmsimard closed 8 years ago

dmsimard commented 8 years ago
sqlite> .schema files
CREATE TABLE files (
  id VARCHAR(36) NOT NULL, 
  playbook_id VARCHAR(36), 
  path VARCHAR(3000), 
  content_id VARCHAR(40), 
  is_playbook BOOLEAN, 
  PRIMARY KEY (id), 
  UNIQUE (playbook_id, path), 
  FOREIGN KEY(playbook_id) REFERENCES playbooks (id) ON DELETE RESTRICT, 
  FOREIGN KEY(content_id) REFERENCES file_contents (id), 
  CHECK (is_playbook IN (0, 1))
);
sqlite> select * from files;
43aa7731-6610-4831-b159-3931372dc87b|029cd83b-5afd-4c17-ba1d-bac7b3fd3e86|/root/ara/tests/integration/smoke.yml||1
868c0d61-d8ed-485a-8035-c184f2f456d8|029cd83b-5afd-4c17-ba1d-bac7b3fd3e86|/root/ara/tests/integration/roles/smoke-tests/tasks/main.yml|e542e869b3e3ccecb2c32dd7ade74841f585d047|0
67ecc7e5-65c9-41b8-9aa1-b998e96244fd|029cd83b-5afd-4c17-ba1d-bac7b3fd3e86|/root/ara/tests/integration/roles/smoke-tests/tasks/file-ops.yml|4bc5b746ae896c84b834142ad80db822eae238c0|0
30a33681-7130-4586-887d-6bf44663c3cc|029cd83b-5afd-4c17-ba1d-bac7b3fd3e86|/root/ara/tests/integration/roles/smoke-tests/tasks/pkg-ops.yml|cbfb2b6f78a9116aa7185abbc900d96f722d32a0|0
97f9faab-278b-46b3-a805-bb17a72595bf|029cd83b-5afd-4c17-ba1d-bac7b3fd3e86|/root/ara/tests/integration/roles/smoke-tests/tasks/blk-ops.yml|48a67b8c2cd0d6f3435a953986ae67e0c77a0490|0
29208a5c-5231-409a-b27b-0b307479014f|1dd31833-2d10-447b-9ae5-a9a3f7fdcc57|/root/ara/tests/integration/hosts.yml||1
dmsimard commented 8 years ago

fixed by https://review.openstack.org/#/c/330747