Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Re-implement --date with --dry-run M&R #299

Closed
sadsfae opened this issue Nov 29, 2019 · 0 comments
Closed

[RFE] Re-implement --date with --dry-run M&R #299

sadsfae opened this issue Nov 29, 2019 · 0 comments
Projects
Milestone

Comments

@sadsfae
Copy link
Member

@sadsfae sadsfae commented Nov 29, 2019

We used to be able to pass --date to move_and_rebuild_host.py to tell us what would happen in the future.

This appears to be present in our argparse and it's being passed to the API query but not being accepted.

Command

quads-cli --move-hosts --dry-run --date "2019-12-01 22:01"

Output

Traceback (most recent call last):
  File "/opt/quads/bin/quads-cli", line 636, in <module>
    main(args)
  File "/opt/quads/bin/quads-cli", line 405, in main
    js = _response.json()
  File "/usr/lib/python3.7/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python3.7/site-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib64/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@sadsfae sadsfae added this to the 1.2 Series milestone Nov 29, 2019
@sadsfae sadsfae added this to To do in 1.2 via automation Nov 29, 2019
@sadsfae sadsfae added the API label Nov 29, 2019
@sadsfae sadsfae closed this in 2f5c19b Nov 29, 2019
1.2 automation moved this from To do to Done Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1.2
  
Done
1 participant
You can’t perform that action at this time.