Skip to content

Commit dec10d8

Browse files
committed
update comments with TODOs
1 parent d3b87ed commit dec10d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dsc_lib/src/configure/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ impl Configurator {
319319
end_datetime = chrono::Local::now();
320320
} else if dsc_resource.capabilities.contains(&Capability::Delete) {
321321
if self.context.execution_type == ExecutionKind::WhatIf {
322+
// TODO: add delete what-if support
322323
return Err(DscError::NotSupported("What-if execution not supported for delete".to_string()));
323324
}
324325
debug!("Resource implements delete and _exist is false");

dsc_lib/src/dscresources/command_resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn invoke_set(resource: &ResourceManifest, cwd: &str, desired: &str, skip_te
131131
}
132132

133133
if ExecutionKind::WhatIf == *execution_type {
134-
// until resources implement their own what-if, return an error here
134+
// TODO: continue execution when resources can implement what-if; only return an error here temporarily
135135
return Err(DscError::NotImplemented("what-if not yet supported for resources that implement pre-test".to_string()));
136136
}
137137

0 commit comments

Comments
 (0)