Fix: Detect "unknown" string as incomplete configuration
Extended incomplete configuration check to handle configs that have literal "unknown" string values (not just empty strings). This handles cases where config migration or incomplete setup left placeholder "unknown" values in PBS_SERVER or PBS_DATASTORE fields. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
72ea543458
commit
8ca8ae2fdc
1 changed files with 2 additions and 1 deletions
|
|
@ -168,7 +168,8 @@ show_targets_list() {
|
|||
echo "Target: $target"
|
||||
|
||||
# Check if config seems incomplete
|
||||
if [ -z "$PBS_SERVER" ] || [ -z "$PBS_DATASTORE" ]; then
|
||||
if [ -z "$PBS_SERVER" ] || [ -z "$PBS_DATASTORE" ] || \
|
||||
[ "$PBS_SERVER" = "unknown" ] || [ "$PBS_DATASTORE" = "unknown" ]; then
|
||||
echo " Status: ⚠ Incomplete configuration"
|
||||
echo " Action: Use option 3 (Edit target) to reconfigure"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue