@@ -41,6 +41,20 @@ func (c ConfigureDirector) Execute(args []string) error {
41
41
return fmt .Errorf ("could not parse configure-director flags: %s" , err )
42
42
}
43
43
44
+ c .logger .Printf ("started configuring director options for bosh tile" )
45
+
46
+ err = c .service .Properties (api.DirectorProperties {
47
+ DirectorConfiguration : json .RawMessage (c .Options .DirectorConfiguration ),
48
+ IAASConfiguration : json .RawMessage (c .Options .IAASConfiguration ),
49
+ SecurityConfiguration : json .RawMessage (c .Options .SecurityConfiguration ),
50
+ SyslogConfiguration : json .RawMessage (c .Options .SyslogConfiguration ),
51
+ })
52
+ if err != nil {
53
+ return fmt .Errorf ("properties could not be applied: %s" , err )
54
+ }
55
+
56
+ c .logger .Printf ("finished configuring director options for bosh tile" )
57
+
44
58
if c .Options .AZConfiguration != "" {
45
59
c .logger .Printf ("started configuring availability zone options for bosh tile" )
46
60
@@ -78,20 +92,6 @@ func (c ConfigureDirector) Execute(args []string) error {
78
92
c .logger .Printf ("finished configuring network assignment options for bosh tile" )
79
93
}
80
94
81
- c .logger .Printf ("started configuring director options for bosh tile" )
82
-
83
- err = c .service .Properties (api.DirectorProperties {
84
- DirectorConfiguration : json .RawMessage (c .Options .DirectorConfiguration ),
85
- IAASConfiguration : json .RawMessage (c .Options .IAASConfiguration ),
86
- SecurityConfiguration : json .RawMessage (c .Options .SecurityConfiguration ),
87
- SyslogConfiguration : json .RawMessage (c .Options .SyslogConfiguration ),
88
- })
89
- if err != nil {
90
- return fmt .Errorf ("properties could not be applied: %s" , err )
91
- }
92
-
93
- c .logger .Printf ("finished configuring director options for bosh tile" )
94
-
95
95
return nil
96
96
}
97
97
0 commit comments