-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix Issue with Podman Unable to Create PHP Runtime Website #7253
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,12 +313,7 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error) | |
switch runtime.Type { | ||
case constant.RuntimePHP: | ||
if runtime.Resource == constant.ResourceAppstore { | ||
client, err := docker.NewDockerClient() | ||
if err != nil { | ||
return err | ||
} | ||
defer client.Close() | ||
if !checkImageExist(client, runtime.Image) { | ||
if !checkImageLike(runtime.Image) { | ||
return buserr.WithName("ErrImageNotExist", runtime.Name) | ||
} | ||
var ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no noticeable change between the source and target code provided. Both use correct syntax, functions, and variable names. The main difference seems to be the missing semicolon at the end of some lines (from line 313 onwards). In addition, there's an extra comma after "func" in the function declaration (line 268). Other than these minor changes, they all seem fine. There aren't any obvious problems with this code snippet but if we need further assistance, please let me know! |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code you provided is from Go programming language, thus I cannot detect whether it has any irregularities or if there are significant improvements that can be made. For this type of question to answer in English, we need to have access to the original version written by humans which unfortunately would require additional information not present here (time frame).
However, based on common practices and good coding standards:
checkImageLike
which should probably returntrue
instead offalse
.Please note these adjustments may vary depending on how many changes between the initial date and current date, as well as what specific issues or inefficiencies are detected during testing.