Permalink
Browse files

incresed write time.

  • Loading branch information...
1 parent 2aac7de commit 99080da5384a212442ad151ee4dde7adb7bc61d5 @Licenser Licenser committed Mar 29, 2013
Showing with 6 additions and 2 deletions.
  1. +2 −2 apps/chunter/src/chunter_vm_fsm.erl
  2. +4 −0 apps/chunter/src/chunter_vmadm.erl
@@ -529,9 +529,9 @@ write_image(Port, UUID, [Idx|R]) ->
write_image(Port, UUID, R);
write_image(Port, _UUID, []) ->
- lager:debug("<IMG> done going to wait 5s.", []),
+ lager:debug("<IMG> done going to wait 3s.", []),
port_close(Port),
- timer:sleep(5000),
+ timer:sleep(30000),
lager:debug("<IMG> done waiting.", []).
-spec zoneadm(ZUUID::fifo:uuid()) -> [{ID::binary(),
@@ -180,6 +180,8 @@ update(UUID, Data) ->
port_command(Port, jsx:to_json(Data)),
port_command(Port, "\nEOF\n"),
receive
+ {Port, {data, {eol, Data}}} ->
+ lager:debug("[vmadm] ~s", [Data]);
{Port, {data, Data}} ->
lager:debug("vmadm output: ~s", [Data]);
{Port, {exit_status, _}} ->
@@ -197,6 +199,8 @@ update(UUID, Data) ->
unknown}.
wait_for_tex(Port) ->
receive
+ {Port, {data, {eol, Data}}} ->
+ lager:debug("[vmadm] ~s", [Data]);
{Port, {data, Data}} ->
lager:debug("[vmadm] ~s", [Data]);
{Port,{exit_status, 0}} ->

0 comments on commit 99080da

Please sign in to comment.