-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update write function #174
Conversation
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
Signed-off-by: Jougan-0 <prasantmishra2018@gmail.com>
relPath := filepath.Join(relDirPath, string(r.Kind), string(r.Type())+".json") | ||
func (r RelationshipDefinition) WriteRelationshipDefinition(relDirPath string, fileType string) error { | ||
relPath := filepath.Join(relDirPath, fmt.Sprintf("%s-%s.%s", r.Kind, utils.GetRandomAlphabetsOfDigit(3), fileType)) | ||
if fileType == "yaml" { |
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.
While I understand that you're not considering the file extension here and that this is identified elsewhere, I do wonder if that logic allow for both .yaml
and .yml
or if it even depends on the file extension at all.
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.
Will update in new PR.
Notes for Reviewers
This PR fixes #
meshery/meshkit#589
meshery/meshery#11354
These both needs to be merged also.
Signed commits