Skip to content

Commit

Permalink
do not change instance name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric DEVEAUD committed Dec 12, 2023
1 parent 29c7d36 commit ed72f83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spython/instance/__init__.py
Expand Up @@ -47,7 +47,10 @@ def generate_name(self, name=None):
# If no name provided, use robot name
if name is None:
name = self.RobotNamer.generate()
self.name = name.replace("-", "_")
# dash allowed in instance name.
# authorizedChars = `^[a-zA-Z0-9._-]+$` from instance_linux.go
#self.name = name.replace("-", "_")
self.name = name

def parse_image_name(self, image):
"""
Expand Down

0 comments on commit ed72f83

Please sign in to comment.