Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cci-tools
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Harbor Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud-infrastructure
cci-tools
Merge requests
!432
[
OS-18522
] Make cloud LB functions honor region argument
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[
OS-18522
] Make cloud LB functions honor region argument
OS-18522
into
master
Overview
4
Commits
7
Pipelines
10
Changes
8
Merged
Luis Fernandez Alvarez
requested to merge
OS-18522
into
master
2 months ago
Overview
4
Commits
7
Pipelines
10
Changes
2
Expand
Closes
OS-18522
0
0
Merge request reports
Compare
version 7
version 9
01e4f856
1 month ago
version 8
959509bc
1 month ago
version 7
9bb555d6
1 month ago
version 6
e0b4fef1
1 month ago
version 5
81ead031
1 month ago
version 4
62a0c70b
1 month ago
version 3
01d08fd1
1 month ago
version 2
015ec1c5
2 months ago
version 1
9888198a
2 months ago
master (base)
and
version 8
latest version
379df9c1
7 commits,
1 month ago
version 9
01e4f856
7 commits,
1 month ago
version 8
959509bc
6 commits,
1 month ago
version 7
9bb555d6
5 commits,
1 month ago
version 6
e0b4fef1
4 commits,
1 month ago
version 5
81ead031
3 commits,
1 month ago
version 4
62a0c70b
3 commits,
1 month ago
version 3
01d08fd1
1 commit,
1 month ago
version 2
015ec1c5
2 commits,
2 months ago
version 1
9888198a
1 commit,
2 months ago
Show latest version
2 files
+
20
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ccitools/cleanup/keypair.py
+
3
−
4
Options
@@ -20,7 +20,8 @@ class KeypairResourceCleanup(base.ResourceCleanup):
logger
.
info
(
"
Looking for leftover keypairs ...
"
)
for
keypair
in
self
.
cloud
.
get_keypairs
(
user_name
=
'
svcprobe
'
,
cloud
=
'
probe
'
):
cloud
=
'
probe
'
,
tag
=
'
cleanup
'
):
created_at
=
dateutil
.
parser
.
parse
(
keypair
.
created_at
)
days_since_created
=
(
datetime
.
now
(
timezone
.
utc
)
@@ -33,9 +34,7 @@ class KeypairResourceCleanup(base.ResourceCleanup):
def
delete_leftovers_before
(
self
):
if
self
.
leftovers
:
self
.
cloud
.
delete_keypairs
(
self
.
leftovers
,
user_name
=
'
svcprobe
'
,
cloud
=
'
probe
'
)
self
.
leftovers
)
def
delete_leftovers_after
(
self
):
pass
Loading