path: root/doc/forum
diff options
authordavid2019-05-30 11:08:41 +0000
committeradmin2019-05-30 11:08:41 +0000
commit089ddeb31ce897bd33568ee3cbf90e14ee37bac9 (patch)
tree3e040907ecb1a8e409112d5e9a22ff79b2f90fc6 /doc/forum
parentb8570d735d1ba52ee9c6d8bb1f93d5f9608c34c1 (diff)
Diffstat (limited to 'doc/forum')
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/forum/commands_that_need_files.mdwn b/doc/forum/commands_that_need_files.mdwn
new file mode 100644
index 00000000..e4adf063
--- /dev/null
+++ b/doc/forum/commands_that_need_files.mdwn
@@ -0,0 +1,9 @@
+I want to run "virsh update-device guest-name snippet.xml", for the moment from Cmd.cmdProperty. snippet.xml should contain the actual configuration information. I'm wondering what the best approach is.
+1. create a persistent copy of this file using File.hasContent or similar
+2. generate a temporary file when running the property.
+3. Use a file from the propellor repo
+(1) is slightly gross because the persistent copy is used only when running propellor.
+(2) I don't really know how to do in propellor; I guess it has to do with monads.
+(3) I don't know if this will work or is frowned upon for some reason.