added clout init image docs
This commit is contained in:
parent
928086aea9
commit
eb9546c9af
4 changed files with 84 additions and 34 deletions
|
|
@ -47,7 +47,6 @@ func (s *Server) body() (b httpbody) {
|
|||
if s.UserData != nil || s.cicustom {
|
||||
b["cicustom"] = s.UserDataSnippet(s.UserDataStorage)
|
||||
}
|
||||
// TODO userdata, err := s.UserData.String()
|
||||
for i, n := range s.NetDevices {
|
||||
if n == nil {
|
||||
b["net"+strconv.Itoa(i)] = ""
|
||||
|
|
@ -155,11 +154,6 @@ func (sc serverConfig) Server(ref *ServerRef) (s *Server, err error) {
|
|||
if _, ok := sc[k].(string); ok {
|
||||
s.cicustom = true
|
||||
}
|
||||
// TODO
|
||||
// case "ciuserdata":
|
||||
// if v, ok := sc[k].(string); ok {
|
||||
// s.UserData, err = parseUserData(v)
|
||||
// }
|
||||
case "memory":
|
||||
if v, ok := sc[k].(float64); ok {
|
||||
s.Resources.Memory = Memory(uint64(v) / 1024)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue