File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
core/graphman/src/commands/deployment
node/src/manager/commands/deployment
server/graphman/src/resolvers Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pub enum ReassignDeploymentError {
49
49
50
50
#[ derive( Clone , Debug ) ]
51
51
pub enum ReassignResult {
52
- EmptyResponse ,
52
+ Ok ,
53
53
CompletedWithWarnings ( Vec < String > ) ,
54
54
}
55
55
@@ -121,6 +121,6 @@ pub fn reassign_deployment(
121
121
let warning_msg = format ! ( "This is the only deployment assigned to '{}'. Please make sure that the node ID is spelled correctly." , node. as_str( ) ) ;
122
122
Ok ( ReassignResult :: CompletedWithWarnings ( vec ! [ warning_msg] ) )
123
123
} else {
124
- Ok ( ReassignResult :: EmptyResponse )
124
+ Ok ( ReassignResult :: Ok )
125
125
}
126
126
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub fn run(
36
36
) ?;
37
37
38
38
match reassign_result {
39
- ReassignResult :: EmptyResponse => {
39
+ ReassignResult :: Ok => {
40
40
println ! (
41
41
"Deployment {} assigned to node {}" ,
42
42
deployment. locator( ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub struct DeploymentMutation;
27
27
28
28
#[ derive( Clone , Debug , Union ) ]
29
29
pub enum ReassignResponse {
30
- EmptyResponse ( EmptyResponse ) ,
30
+ Ok ( EmptyResponse ) ,
31
31
CompletedWithWarnings ( CompletedWithWarnings ) ,
32
32
}
33
33
@@ -124,9 +124,7 @@ impl DeploymentMutation {
124
124
ReassignResult :: CompletedWithWarnings ( warnings) => Ok (
125
125
ReassignResponse :: CompletedWithWarnings ( CompletedWithWarnings :: new ( warnings) ) ,
126
126
) ,
127
- ReassignResult :: EmptyResponse => {
128
- Ok ( ReassignResponse :: EmptyResponse ( EmptyResponse :: new ( ) ) )
129
- }
127
+ ReassignResult :: Ok => Ok ( ReassignResponse :: Ok ( EmptyResponse :: new ( ) ) ) ,
130
128
}
131
129
}
132
130
}
You can’t perform that action at this time.
0 commit comments