Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Allow dots in the name for 'iocage console' (issue 677) (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsegaert authored and Brandon Schneider committed Nov 12, 2018
1 parent 5ac562b commit 3196d84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iocage_lib/iocage.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ def exec(self,
login_flags = self.get('login_flags').split()
exec_fib = self.get('exec_fib')
console_cmd = [
"/usr/sbin/setfib", exec_fib, "jexec", f"ioc-{uuid}",
"/usr/sbin/setfib", exec_fib,
"jexec", f"ioc-{uuid.replace('.', '_')}",
"login"] + login_flags

su.Popen(console_cmd, env=su_env).communicate()
Expand All @@ -829,7 +830,8 @@ def exec(self,
if interactive:
exec_fib = self.get('exec_fib')
interactive_cmd = (
"/usr/sbin/setfib", exec_fib, "jexec", f"ioc-{uuid}"
"/usr/sbin/setfib", exec_fib,
"jexec", f"ioc-{uuid.replace('.', '_')}"
) + command

try:
Expand Down

0 comments on commit 3196d84

Please sign in to comment.