pub fn template_secrets(&mut self) -> BTreeMap<String, String> {
        let mut plain = BTreeMap::new();
        let mut ts = BTreeMap::new();
        for (k, v) in self.plain.iter() {
            match EnvVars::template_secret_value(v) {
                Some(x) => {
                    ts.insert(k.to_string(), x);
                    self.secrets.insert(k.to_string());
                }
                None => {
                    plain.insert(k.to_string(), v.to_string());
                }
            };
        }
        self.plain = plain;
        ts
    }
// Remove secrets generated from templates from the plain variables, mark them as a secret and return them.
Remove secrets generated from templates from the plain variables, mark them as a secret and return them.
Remove secrets generated from templates from the plain variables mark them as a secret and return them .
pub fn template_secrets(&mut self) -> BTreeMap<String, String> {
        let mut plain = BTreeMap::new();
        let mut ts = BTreeMap::new();
        for (k, v) in self.plain.iter() {
            match EnvVars::template_secret_value(v) {
                Some(x) => {
                    ts.insert(k.to_string(), x);
                    self.secrets.insert(k.to_string());
                }
                None => {
                    plain.insert(k.to_string(), v.to_string());
                }
            };
        }
        self.plain = plain;
        ts
    }
pub fn template_secrets ( & mut self ) -> BTreeMap < String , String > { let mut plain = BTreeMap :: new ( ) ; let mut ts = BTreeMap :: new ( ) ; for ( k , v ) in self . plain . iter ( ) { match EnvVars :: template_secret_value ( v ) { Some ( x ) => { ts . insert ( k . to_string ( ) , x ) ; self . secrets . insert ( k . to_string ( ) ) ; } None => { plain . insert ( k . to_string ( ) , v . to_string ( ) ) ; } } ; } self . plain = plain ; ts }
Remove secrets generated from templates from the plain variables, mark them as a secret and return them.
Remove secrets generated from templates from the plain variables mark them as a secret and return them .
&mut self
&mut self