This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git


The following commit(s) were added to refs/heads/main by this push:
     new c97233e  Prevent ACS commands starting with sync to get redirected to 
API discovery (#82)
c97233e is described below

commit c97233e65c63c70128163d27d14d8a681d184c35
Author: Pearl Dsilva <[email protected]>
AuthorDate: Tue Aug 3 11:04:59 2021 +0530

    Prevent ACS commands starting with sync to get redirected to API discovery 
(#82)
    
    * Prevent ACS commands starting with sync to get redirected to API discovery
    
    * change check
---
 cli/exec.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/exec.go b/cli/exec.go
index 776de55..27ff811 100644
--- a/cli/exec.go
+++ b/cli/exec.go
@@ -58,7 +58,7 @@ func ExecCmd(args []string) error {
        }
 
        command := cmd.FindCommand(args[0])
-       if command != nil {
+       if command != nil && !(args[0] == "sync" && len(args) > 1) {
                return command.Handle(cmd.NewRequest(command, cfg, args[1:]))
        }
 

Reply via email to