Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Delete ReplicationController does not support the Windows platform #123

Open
bravelib opened this issue Mar 24, 2017 · 0 comments
Open

Delete ReplicationController does not support the Windows platform #123

bravelib opened this issue Mar 24, 2017 · 0 comments

Comments

@bravelib
Copy link

hello,
When I dev on windows platform,

    obj = {
        "apiVersion": "v1",
        "kind"      : "ReplicationController",
        "metadata"  : {
            "name"     : "frontendcontroller",
            "namespace": "bravelib"
        }
    }
    api = init_clound_api()
    pykube.ReplicationController(api=api, obj=obj).delete()

She can not work, I found
C:\Python27\Lib\site-packages\pykube\objects.py
Line:70
When I add The following lines code ,She can Delete it,

import platform
if 'Windows' in platform.system():
    kw["url"] = kw["url"].replace("\\", "/")
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant