Skip to content

Commit 5caeb5c

Browse files
ser-iocjreynol
authored andcommitted
[skip ci] Merge "Put cvdr translation behind ENABLE_CVDR_TRANSLATION directive." into main
GitOrigin-RevId: 28c25f4
1 parent a6f25f4 commit 5caeb5c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

staging/host/commands/cvd/server_command/try_acloud.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "host/commands/cvd/server_command/utils.h"
3131
#include "host/commands/cvd/types.h"
3232

33+
#define ENABLE_CVDR_TRANSLATION 0
34+
3335
namespace cuttlefish {
3436

3537
class TryAcloudCommand : public CvdServerHandler {
@@ -51,14 +53,17 @@ class TryAcloudCommand : public CvdServerHandler {
5153
* - `cvd` for local instance management, determined by flag
5254
* `--local-instance`.
5355
*
54-
* - Or `cvdr` for remote instance management.
56+
* - Or `cvdr` for remote instance management (#if ENABLE_CVDR_TRANSLATION).
5557
*
5658
* If the test fails, the command will be handed to the `python acloud CLI`.
5759
*
5860
*/
5961
Result<cvd::Response> Handle(const RequestWithStdio& request) override {
62+
#if ENABLE_CVDR_TRANSLATION
6063
auto res = VerifyWithCvdRemote(request);
6164
return res.ok() ? res : VerifyWithCvd(request);
65+
#endif
66+
return VerifyWithCvd(request);
6267
}
6368

6469
Result<void> Interrupt() override {

0 commit comments

Comments
 (0)