Commit graph

115 commits

Author SHA1 Message Date
Steven Armstrong
e58b52592b add missing environment variable __self
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
4975b4643a --typo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 13:11:53 +02:00
Steven Armstrong
95a858c350 implement: fail if type does not exist on the filesystem
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 12:46:06 +02:00
Steven Armstrong
a0a4a7382d import NoSuchTypeError into cdist.core namespace
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 12:44:07 +02:00
Nico Schottelius
32b2c49d32 found 2 bugs in transfer_code_remote
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 12:39:06 +02:00
Nico Schottelius
053903bb69 use instance logger in explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 12:00:46 +02:00
Steven Armstrong
b8b9719cc6 Merge remote-tracking branch 'telmich/master'
Conflicts:
	lib/cdist/core/explorer.py
	lib/cdist/emulator.py

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-15 10:51:08 +02:00
Nico Schottelius
00a1f1eeb9 ++ more host prefixing log code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:41:11 +02:00
Nico Schottelius
a415cc4b91 add correct logger in manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:38:22 +02:00
Steven Armstrong
889e6c23cb Explorer tracks which type explorers have been transferred instad of Type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-15 00:44:54 +02:00
Nico Schottelius
0d441eb378 report info when running initial manifest (it may take some time)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:12:08 +02:00
Nico Schottelius
72e930ac1c Merge remote-tracking branch 'steven/master' 2011-10-14 23:52:00 +02:00
Nico Schottelius
1e31721ad9 BUGFIX: remote path for explorer in __object variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:50:31 +02:00
Steven Armstrong
325a13088c implement that type explorers are only transfered once
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:47:05 +02:00
Steven Armstrong
814b46f0c7 /transfered_explorers/explorers_transferred/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:44:27 +02:00
Nico Schottelius
ba59339f67 fixup code and manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:21:22 +02:00
Nico Schottelius
f80520090b remove obsolete global_explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:14:49 +02:00
Nico Schottelius
02934055e7 make debug test work for explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:14:05 +02:00
Nico Schottelius
bc85237eaa make code setup debug env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:04:19 +02:00
Steven Armstrong
f723bede10 no longer return output from run_*_manifest
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 16:14:39 +02:00
Steven Armstrong
c30e112e4a explorer: make tests pass again
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 16:07:50 +02:00
Steven Armstrong
c9bb105518 run_code* no longer returns output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:59:58 +02:00
Steven Armstrong
fb705adc5d simplify object_id error handling
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 14:04:56 +02:00
Steven Armstrong
93db0b58d6 append type to error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 12:05:30 +02:00
Steven Armstrong
f76a5abf6f /./,/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:50:40 +02:00
Steven Armstrong
1c84e423d1 include type name in error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:49:37 +02:00
Steven Armstrong
d346364544 better error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:39:03 +02:00
Steven Armstrong
3e3919d15f implement fail if object_id starts with /
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:25:39 +02:00
Steven Armstrong
b122b53d73 implement Object object_from_name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:05:51 +02:00
Steven Armstrong
a8733c5b9b make base_path public
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 08:57:06 +02:00
Steven Armstrong
08d98ac389 only list type explorers if there are any; only transfer type explorers if there are ant
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:05:34 +02:00
Steven Armstrong
d02b8d9d30 fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:04:54 +02:00
Steven Armstrong
1f44617133 use remote paths when executing on remote side
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:03:05 +02:00
Steven Armstrong
773d325afa only run gencode scripts if they exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:56:03 +02:00
Steven Armstrong
6dada17509 only run type manifest if it exists
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:53:07 +02:00
Steven Armstrong
74300ab38e set __cdist_manifest for use in type emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:52:06 +02:00
Steven Armstrong
be21cdce17 set __cdist_manifest for use in type emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:41:54 +02:00
Steven Armstrong
6c7e280eac remove obsolete method, merge code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:11:50 +02:00
Steven Armstrong
1c3902f3db implement run_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:09:47 +02:00
Steven Armstrong
e605102281 implement run_code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:02:10 +02:00
Steven Armstrong
31ce938593 implement transfer_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:57:49 +02:00
Steven Armstrong
5edcc0537b use api internally instead of constructing the same paths again
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:37:50 +02:00
Steven Armstrong
1665b4b5e6 implement run_gencode_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:32:52 +02:00
Steven Armstrong
6d438d4ec5 implement run_gencode_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:29:20 +02:00
Steven Armstrong
939962b583 implement code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:42:58 +02:00
Steven Armstrong
93ede2a3be implement code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:40:50 +02:00
Steven Armstrong
8fb51a396a implement list_type_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:34:06 +02:00
Steven Armstrong
86fcce928c implement list_global_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:31:42 +02:00
Steven Armstrong
20fae8b52b fix typo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:14:56 +02:00
Steven Armstrong
48ae37e832 implement transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:04:23 +02:00