Commit 5c097318 authored by Iustin Pop's avatar Iustin Pop
Browse files

gnt-instance info: automatically request locking

Commit dae661a4

 added support for controlling the locking, but it
didn't modify the gnt-instance info code, which leads to this command
always showing:

Wed Apr 20 04:10:48 2011  - WARNING: Non-static data requested, locks
need to be acquired

We simply change gnt-instance to request locks whenever we don't use
the static mode.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent bee8c465
......@@ -1144,7 +1144,8 @@ def ShowInstanceConfig(opts, args):
return 1
retcode = 0
op = opcodes.OpInstanceQueryData(instances=args, static=opts.static)
op = opcodes.OpInstanceQueryData(instances=args, static=opts.static,
use_locking=not opts.static)
result = SubmitOpCode(op, opts=opts)
if not result:
ToStdout("No instances.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment