~maas-committers/maas/trunk

« back to all changes in this revision

Viewing changes to src/maascli/api.py

  • Committer: MAAS Lander
  • Author(s): Gavin Panella, Lee Trager
  • Date: 2016-04-25 05:08:30 UTC
  • mfrom: (4942.2.2 delete_on_files)
  • Revision ID: maas_lander-20160425050830-8lbleappa0a3towo
[r=allenap][bug=1566108][author=ltrager] Allow deleting a file by specifying the filename as a parameter

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
            with opener() as fd:
227
227
                return fd.read()
228
228
 
229
 
        if method == "GET":
 
229
        if method in ["GET", "DELETE"]:
230
230
            query.extend(
231
231
                (name, slurp(value) if callable(value) else value)
232
232
                for name, value in data)