Use hostuuid as jail Name
This commit is contained in:
		@ -255,7 +255,7 @@ func listJailsFromDirectory(dir string, dsname string) ([]Jail, error) {
 | 
				
			|||||||
			// 2. Build jail object from config
 | 
								// 2. Build jail object from config
 | 
				
			||||||
			jailRootPath := fmt.Sprintf("%s/%s/%s", dir, fi.Name(), "root")
 | 
								jailRootPath := fmt.Sprintf("%s/%s/%s", dir, fi.Name(), "root")
 | 
				
			||||||
			j := Jail{
 | 
								j := Jail{
 | 
				
			||||||
				Name:       jailConf.Host_hostname,
 | 
									Name:       jailConf.Host_hostuuid,
 | 
				
			||||||
				Config:     jailConf,
 | 
									Config:     jailConf,
 | 
				
			||||||
				ConfigPath: jailConfPath,
 | 
									ConfigPath: jailConfPath,
 | 
				
			||||||
				Datastore:  dsname,
 | 
									Datastore:  dsname,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user