Skip to content

Syntax Error in lsdev and dmap when determining alias_template? #30

@1MoreTechGuy

Description

@1MoreTechGuy

While helping out a recent HL8 user on this 45HomeLab forum post, we noticed that HOMELAB and PROFESSIONAL sections under alias_template in lsdev appeared to end with an erroneous comma. This section appears to be parsing JSON and that shouldn't end a list like his with a comma. None of the other sections are coded this way. This appears to causing issues in the Houston UI Disks cockpit module with error Unknown Alias Style ‘HOMELAB’ encountered. coming from lsdev

alias_template = {
		"H16":{
			"AV15":[23],
			"Q30":[15,23],
			"S45":[15,15,23],
			"XL60":[15,15,15,23]
		},
		"H32":{
			"Q30":[15,32],
			"S45":[15,15,32],
			"XL60":[15,15,15,32]
		},
		"STORINATOR":{
			"AV15":[15],
			"Q30":[15,15],
			"S45":[15,15,15],
			"XL60":[15,15,15,15],
			"C8":[4,4],
			"MI4":[4],
			"HL15":[15]
		},
		"HOMELAB":{
			"HL15":[15],
			"HL4":[4],
			"HL8":[4,4],
		},
  		"PROFESSIONAL":{
			"PRO15":[15],
			"PRO4":[4],
			"PRO8":[4,4],
		},

Looks like dmap was also update with similar code that includes the extra comma. Commits include 2cf11f8 and e251c70.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions