Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Seblu
installsystems
Commits
64d16b0d
Commit
64d16b0d
authored
13 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
image name can use - and _
parent
38d6770b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/is
+1
-1
1 addition, 1 deletion
bin/is
installsystems/image.py
+1
-1
1 addition, 1 deletion
installsystems/image.py
with
2 additions
and
2 deletions
bin/is
+
1
−
1
View file @
64d16b0d
...
...
@@ -54,7 +54,7 @@ def select_image(name, repoman, best=False):
if
istools
.
isfile
(
name
)
and
os
.
path
.
isfile
(
name
):
return
PackageImage
(
name
),
None
else
:
x
=
re
.
match
(
"
^((\w+)/)?(\w+)(:v?(\d+))?$
"
,
name
)
x
=
re
.
match
(
"
^((
[-_
\w
]
+)/)?(
[-_
\w
]
+)(:v?(\d+))?$
"
,
name
)
if
x
is
None
:
raise
Exception
(
"
%s is not a valid image
"
%
name
)
(
repo
,
image
,
version
)
=
x
.
group
(
2
,
3
,
5
)
...
...
This diff is collapsed.
Click to expand it.
installsystems/image.py
+
1
−
1
View file @
64d16b0d
...
...
@@ -37,7 +37,7 @@ class Image(object):
'''
Check if @name is a valid image name
'''
return
re
.
match
(
"
\w+
"
,
buf
)
is
not
None
return
re
.
match
(
"
[-_
\w
]
+
"
,
buf
)
is
not
None
@staticmethod
def
check_image_version
(
buf
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment