Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new weed shell command #182

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
print cmd
LazyDBA247-Anyvision authored Mar 7, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c656da1442fe18a54c74ae7a93e877f53146780a
1 change: 1 addition & 0 deletions automation/devops_automation_infra/plugins/docker.py
Original file line number Diff line number Diff line change
@@ -114,6 +114,7 @@ def run_container_till_complete(self, servce_name, timeout=60):
def run_cmd_in_service(self, service_name, cmd):
cmd_escaped = cmd.replace("'", "\\'")
cmd = self._running_container_by_name_cmd(service_name) + f"| xargs -I{{}} {self._docker_bin} exec {{}} sh -c $'{cmd_escaped}'"
logging.info(f"cmd: {cmd}")
return self.try_executing_and_verbosely_log_error(cmd).strip()

def run_cmd_in_service_background(self, service_name, cmd):