Linting fixes
This commit is contained in:
@@ -17,7 +17,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
|||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
// Checking if container flag was set, then overwriting OptRoot
|
// Checking if container flag was set, then overwriting OptRoot
|
||||||
if OptContainer != "" {
|
if OptContainer != "" {
|
||||||
if container.ValidSource(OptContainer) == true {
|
if container.ValidSource(OptContainer) {
|
||||||
OptRoot = container.RootFsDir(OptContainer)
|
OptRoot = container.RootFsDir(OptContainer)
|
||||||
} else {
|
} else {
|
||||||
wwlog.Printf(wwlog.ERROR, " %s is not a valid container", OptContainer)
|
wwlog.Printf(wwlog.ERROR, " %s is not a valid container", OptContainer)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
|||||||
var updateNodes []node.NodeInfo
|
var updateNodes []node.NodeInfo
|
||||||
|
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
if SystemOverlay == true && node.SystemOverlay.Get() == overlayName {
|
if SystemOverlay && node.SystemOverlay.Get() == overlayName {
|
||||||
updateNodes = append(updateNodes, node)
|
updateNodes = append(updateNodes, node)
|
||||||
} else if node.RuntimeOverlay.Get() == overlayName {
|
} else if node.RuntimeOverlay.Get() == overlayName {
|
||||||
updateNodes = append(updateNodes, node)
|
updateNodes = append(updateNodes, node)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ func (c *Cache) checkEntry(id string) (string, error) {
|
|||||||
|
|
||||||
func (c *Cache) createEntry(id string) (string, error) {
|
func (c *Cache) createEntry(id string) (string, error) {
|
||||||
path := filepath.Join(c.rootfsDir(), id)
|
path := filepath.Join(c.rootfsDir(), id)
|
||||||
if err := os.MkdirAll(path, 755); err != nil {
|
if err := os.MkdirAll(path, 0755); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user