mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Fixing an idempotency problem found in testing.
This commit is contained in:
parent
e3579ccb17
commit
d024013970
@ -64,7 +64,10 @@ def clone_repository():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
repository = 'https://github.com/GoogleCloudPlatform/kubernetes.git'
|
repository = 'https://github.com/GoogleCloudPlatform/kubernetes.git'
|
||||||
kubernetes_directory = '/opt/kubernetes'
|
kubernetes_directory = path('/opt/kubernetes')
|
||||||
|
# Since we can not clone twice, check for the directory and remove it.
|
||||||
|
if kubernetes_directory.isdir():
|
||||||
|
kubernetes_directory.rmtree_p()
|
||||||
|
|
||||||
command = ['git', 'clone', repository, kubernetes_directory]
|
command = ['git', 'clone', repository, kubernetes_directory]
|
||||||
print(command)
|
print(command)
|
||||||
|
Loading…
Reference in New Issue
Block a user