On  0, Alan Malta Rodrigues <notifications@github.com> wrote:
> >  
> >  cd $STATEDIR
> > +host=`hostname`
> > +
> > +# download metadata and stage it for update
> > +# change is applied on next updatedata() call
> > +fetch_metadata(){
> > +  set -e
> > +  # clean-up STEGEDIR area
> > +  rm -f $STAGEDIR/*.js $STAGEDIR/*-schema-stamp
> 
> This is the last thing we wanna do in this function. Since we only delete and copy over new files when they have passed the maps validation.

I re-ordered steps as you requested. Please check again.

> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dmwm/deployment/pull/118/files#r10797551