[OSGeo] #3163: remove_snapshots doesn't seem to work with instances that have numbers in name

#3163: remove_snapshots doesn't seem to work with instances that have numbers in
name
----------------------+---------------------------------------
Reporter: robe | Owner: sac-tickets@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-II
Component: SysAdmin | Keywords:
----------------------+---------------------------------------
I was trying to purge extra snapshots on download8 which is on osgeo8.

Running this command

{{{
  bash remove_snapshots.sh download8

}}}

Yields an awk error
{{{
download8
osgeo8_lxd/containers/download8 1.3T 1.2T 78G 94% /
awk: line 0: regular expression compile failed (missing operand)
|
}}}

Only thing I can think of that is special about download8 is it has a
digit at the end.
I ran into a similar issue way back with something like some-container-2.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3163&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3163: remove_snapshots doesn't seem to work with instances that have numbers in
name
----------------------+----------------------------------------
Reporter: robe | Owner: sac-tickets@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2024-II
Component: SysAdmin | Resolution:
Keywords: |
----------------------+----------------------------------------
Comment (by cvvergara):

PR 66 on ansible-deployment
--
Ticket URL: <#3163 (remove_snapshots doesn't seem to work with instances that have numbers in name) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.