atomic: fix errors in display option #107
atomic: fix errors in display option #107
Conversation
2a30216
to
12a003c
Compare
@chuanchang We have always been displaying the command before executing. The new code was just to allow a "test" run where it would only display the message but not actually run it. We could open a discussion on whether we should continue to display the command before executing it. |
@rhatdan, got it, good to know this, thanks. |
@rhatdan, there are two questions are mentioned in this PR, except above one, I think we should fix issue for atomic install with --display doestn't work. |
@chuanchang Could you fix your patch for install --display then and I will merge @sallyom ^^ |
thanks for the fix @chuanchang from Options: section of 'man atomic install' |
Fix atomic install with --display doestn't work. Signed-off-by: Alex Jia <ajia@redhat.com>
12a003c
to
2cf6441
Compare
LGTM |
atomic: fix errors in display option
@rhatdan This has a test failure due to a runtime exception. There's a code path in which In addition
@chuanchang What exactly was the problem with the command prior to this PR? |
@willmtemple, oh, I forgot to declare 'cmd' variable before if statement, for the name of the flag, I have no idea, @rhatdan, what do you think? thx |
I think this is the correct way. |
atomic install with --display doestn't work, and atomic run still preview the command without --display option, the patch will fix them.
Signed-off-by: Alex Jia ajia@redhat.com