Skip to content

Commit

Permalink
Merge pull request #9185 from m-czernek/spacecmd-bootstrap-fix
Browse files Browse the repository at this point in the history
Fix spacecmd type issue during bootstrap
  • Loading branch information
deneb-alpha authored Sep 9, 2024
2 parents 9f7a168 + b31e453 commit cf15ddb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions spacecmd/spacecmd.changes.mczernek.spacecmd-bootstrap-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Spacecmd bootstrap now works with specified port (bsc#1229437)
6 changes: 6 additions & 0 deletions spacecmd/src/spacecmd/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -4563,6 +4563,12 @@ def do_system_bootstrap(self, args):
if answer in ['y', 'Y']:
options.saltssh = True

if isinstance(options.port, str):
if not options.port.isnumeric():
logging.error(_N("Provided port must be numeric"))
return 1
options.port = int(options.port)

if not options.hostname:
logging.error(_N("Hostname must be provided"))
return 1
Expand Down

0 comments on commit cf15ddb

Please sign in to comment.