Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.recipe.cmmi
Commits
d68c3b68
Commit
d68c3b68
authored
Feb 21, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two error messages.
parent
129ecae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+2
-2
No files found.
slapos/recipe/cmmi/__init__.py
View file @
d68c3b68
...
@@ -81,12 +81,12 @@ class Recipe(EnvironMixin):
...
@@ -81,12 +81,12 @@ class Recipe(EnvironMixin):
path
=
options
.
get
(
'path'
)
path
=
options
.
get
(
'path'
)
if
url
:
if
url
:
if
path
:
if
path
:
raise
UserError
(
'You must
provide either "url" or "path".
'
)
raise
UserError
(
'You must
use either "url" or "path", not both!
'
)
options
[
'compile-directory'
]
=
os
.
path
.
join
(
location
,
'.build'
)
options
[
'compile-directory'
]
=
os
.
path
.
join
(
location
,
'.build'
)
elif
path
:
elif
path
:
options
[
'compile-directory'
]
=
path
options
[
'compile-directory'
]
=
path
else
:
else
:
raise
UserError
(
'You must
use either "url" or "path", not both!
'
)
raise
UserError
(
'You must
provide either "url" or "path".
'
)
for
k
,
v
in
list
(
options
.
items
()):
for
k
,
v
in
list
(
options
.
items
()):
if
'@@LOCATION@@'
in
v
:
if
'@@LOCATION@@'
in
v
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment