Improve output.
This commit is contained in:
parent
dc40e732ee
commit
f823ba361e
@ -10,7 +10,7 @@ if lxc remote get-default | grep -q "local"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "WARNING: This will DESTROY any existing VMs! Use the --purge flag to delete ALL Sovereign Stack LXD resources."
|
||||
echo "WARNING: This will DESTROY any existing VMs!"
|
||||
|
||||
RESPONSE=
|
||||
read -r -p "Are you sure you want to continue (y/n): ": RESPONSE
|
||||
|
@ -26,14 +26,13 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
|
||||
echo
|
||||
echo
|
||||
echo "Project: $PROJECT_NAME"
|
||||
echo "----------------------"
|
||||
echo "----------------------------------------------------------"
|
||||
if ! lxc info | grep "project:" | grep -q "$PROJECT_NAME"; then
|
||||
if lxc project list | grep -q "$PROJECT_NAME"; then
|
||||
lxc project switch "$PROJECT_NAME"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
echo " Networks:"
|
||||
lxc network list
|
||||
echo
|
||||
@ -42,6 +41,5 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
|
||||
echo
|
||||
echo " Instances (VMs):"
|
||||
lxc list
|
||||
echo
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
done
|
Loading…
Reference in New Issue
Block a user